forked from StudioInfinity/dyna3
Use Self
in implementations whenever possible
This commit is contained in:
parent
e0230a6fde
commit
1d03d1e8c2
6 changed files with 43 additions and 43 deletions
|
@ -41,8 +41,8 @@ struct SceneSpheres {
|
|||
}
|
||||
|
||||
impl SceneSpheres {
|
||||
fn new() -> SceneSpheres {
|
||||
SceneSpheres {
|
||||
fn new() -> Self {
|
||||
Self {
|
||||
representations: Vec::new(),
|
||||
colors_with_opacity: Vec::new(),
|
||||
highlights: Vec::new(),
|
||||
|
@ -71,8 +71,8 @@ struct ScenePoints {
|
|||
}
|
||||
|
||||
impl ScenePoints {
|
||||
fn new() -> ScenePoints {
|
||||
ScenePoints {
|
||||
fn new() -> Self {
|
||||
Self {
|
||||
representations: Vec::new(),
|
||||
colors_with_opacity: Vec::new(),
|
||||
highlights: Vec::new(),
|
||||
|
@ -97,8 +97,8 @@ pub struct Scene {
|
|||
}
|
||||
|
||||
impl Scene {
|
||||
fn new() -> Scene {
|
||||
Scene {
|
||||
fn new() -> Self {
|
||||
Self {
|
||||
spheres: SceneSpheres::new(),
|
||||
points: ScenePoints::new(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue