clippy
This commit is contained in:
@@ -6,7 +6,7 @@ impl wgui::assets::AssetProvider for GuiAsset {
|
||||
fn load_from_path(&mut self, path: &str) -> anyhow::Result<Vec<u8>> {
|
||||
match Self::get(path) {
|
||||
Some(data) => Ok(data.data.to_vec()),
|
||||
None => anyhow::bail!("embedded file {} not found", path),
|
||||
None => anyhow::bail!("embedded file {path} not found"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -275,7 +275,7 @@ impl<S: 'static> OverlayBackend for GuiPanel<S> {
|
||||
pos: hit.uv * self.layout.content_size,
|
||||
device: hit.pointer,
|
||||
});
|
||||
let result = self.push_event(app, &e);
|
||||
let result = self.push_event(app, e);
|
||||
|
||||
HoverResult {
|
||||
consume: result != EventResult::NoHit,
|
||||
|
||||
Reference in New Issue
Block a user