clippy fixes

This commit is contained in:
Dmitry Stepanov
2023-11-14 21:25:30 +03:00
parent ca3d35d998
commit fd905071e3
8 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ impl SceneLoader {
},
)
.unwrap();
let material = MaterialResource::new(material);
let material = MaterialResource::new_ok(material);
// Add some sprites.
for y in 0..10 {
+2 -2
View File
@@ -77,7 +77,7 @@ async fn create_scene(resource_manager: ResourceManager) -> GameScene {
.with_surfaces(vec![SurfaceBuilder::new(SurfaceSharedData::new(
SurfaceData::make_sphere(10, 10, 0.1, &Matrix4::identity()),
))
.with_material(MaterialResource::new(cursor_material))
.with_material(MaterialResource::new_ok(cursor_material))
.build()])
.build(&mut scene.graph);
@@ -99,7 +99,7 @@ async fn create_scene(resource_manager: ResourceManager) -> GameScene {
.with_surfaces(vec![SurfaceBuilder::new(SurfaceSharedData::new(
SurfaceData::make_sphere(10, 10, 0.2, &Matrix4::identity()),
))
.with_material(MaterialResource::new(agent_material))
.with_material(MaterialResource::new_ok(agent_material))
.build()])
.build(&mut scene.graph);