Skip to content

Commit

Permalink
fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mrDIMAS committed May 19, 2024
1 parent 0410c9a commit a2f7f23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions fyrox-impl/src/engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2797,10 +2797,10 @@ impl Engine {

scene_state.deserialize_into_prefab_scene(
&model,
&self.serialization_context,
&self.resource_manager,
&self.widget_constructors,
)?;
&self.serialization_context,
&self.resource_manager,
&self.widget_constructors,
)?;
}

// Deserialize scene content.
Expand Down
4 changes: 2 additions & 2 deletions fyrox-impl/src/material/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ pub trait MaterialResourceExtension {
/// You must use this method to create materials, if you want hot reloading to be reliable and
/// prevent random crashes. Unlike [`Resource::new_ok`], this method ensures that correct vtable
/// is used.
fn new(material: Material) -> MaterialResource;
fn new(material: Material) -> Self;

/// Creates a deep copy of the material resource.
fn deep_copy(&self) -> MaterialResource;
Expand All @@ -950,7 +950,7 @@ pub trait MaterialResourceExtension {

impl MaterialResourceExtension for MaterialResource {
#[inline(never)] // Prevents vtable mismatch when doing hot reloading.
fn new(material: Material) -> MaterialResource {
fn new(material: Material) -> Self {
Self::new_ok(ResourceKind::Embedded, material)
}

Expand Down

0 comments on commit a2f7f23

Please sign in to comment.