fixed clippy warnings

This commit is contained in:
Dmitry Stepanov
2025-02-20 22:44:30 +03:00
parent 81133c38f8
commit 9edcba619e
4 changed files with 7 additions and 7 deletions
@@ -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
})
+2 -2
View File
@@ -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(),
),
);
+1 -1
View File
@@ -1118,7 +1118,7 @@ impl SceneViewer {
ui.send_message(ImageMessage::texture(
self.frame,
MessageDirection::ToWidget,
render_target.map(Into::into),
render_target,
));
}