Use Self in implementations whenever possible

This commit is contained in:
Aaron Fenyes 2025-08-05 14:12:31 -07:00
parent e0230a6fde
commit 1d03d1e8c2
6 changed files with 43 additions and 43 deletions

View file

@ -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(),
}