mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
fixed clippy warnings
This commit is contained in:
@@ -319,7 +319,7 @@ impl SpriteSheetFramesEditorWindow {
|
||||
.on_row(0)
|
||||
.on_column(0),
|
||||
)
|
||||
.with_opt_texture(container.texture().map(Into::into))
|
||||
.with_opt_texture(container.texture())
|
||||
.build(ctx);
|
||||
|
||||
let buttons_container = StackPanelBuilder::new(
|
||||
@@ -374,7 +374,7 @@ impl SpriteSheetFramesEditorWindow {
|
||||
WidgetBuilder::new()
|
||||
.with_margin(Thickness::uniform(1.0)),
|
||||
)
|
||||
.with_opt_texture(container.texture().map(Into::into))
|
||||
.with_opt_texture(container.texture())
|
||||
.build(ctx),
|
||||
)
|
||||
.with_child(grid),
|
||||
|
||||
@@ -116,7 +116,7 @@ impl Control for TextureEditor {
|
||||
ui.send_message(ImageMessage::texture(
|
||||
self.image,
|
||||
MessageDirection::ToWidget,
|
||||
self.texture.clone().map(Into::into),
|
||||
self.texture.clone(),
|
||||
));
|
||||
|
||||
ui.send_message(message.reverse());
|
||||
@@ -158,7 +158,7 @@ impl TextureEditorBuilder {
|
||||
.with_allow_drop(true),
|
||||
)
|
||||
.with_checkerboard_background(true)
|
||||
.with_opt_texture(self.texture.map(Into::into))
|
||||
.with_opt_texture(self.texture)
|
||||
.build(ctx);
|
||||
image
|
||||
})
|
||||
|
||||
@@ -554,7 +554,7 @@ impl MaterialEditor {
|
||||
ImageMessage::texture(
|
||||
view.editor,
|
||||
MessageDirection::ToWidget,
|
||||
binding.value.clone().map(Into::into),
|
||||
binding.value.clone(),
|
||||
),
|
||||
),
|
||||
MaterialResourceBinding::PropertyGroup(ref group) => {
|
||||
@@ -681,7 +681,7 @@ impl MaterialEditor {
|
||||
ImageMessage::texture(
|
||||
message.destination(),
|
||||
MessageDirection::ToWidget,
|
||||
texture.clone().map(Into::into),
|
||||
texture.clone(),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
@@ -1118,7 +1118,7 @@ impl SceneViewer {
|
||||
ui.send_message(ImageMessage::texture(
|
||||
self.frame,
|
||||
MessageDirection::ToWidget,
|
||||
render_target.map(Into::into),
|
||||
render_target,
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user