Ran cargo_fmt over changed files.
This commit is contained in:
parent
a88aae5e04
commit
5696afcadd
6 changed files with 53 additions and 55 deletions
|
|
@ -1,15 +1,9 @@
|
|||
use crate::{svg::Handle, Primitive, Renderer};
|
||||
use iced_native::{
|
||||
icon, MouseCursor, Rectangle,
|
||||
};
|
||||
use iced_native::{icon, MouseCursor, Rectangle};
|
||||
use std::path::Path;
|
||||
|
||||
impl icon::Renderer for Renderer {
|
||||
fn draw(
|
||||
&mut self,
|
||||
bounds: Rectangle,
|
||||
path: &Path,
|
||||
) -> Self::Output {
|
||||
fn draw(&mut self, bounds: Rectangle, path: &Path) -> Self::Output {
|
||||
(
|
||||
Primitive::Svg {
|
||||
handle: Handle::from_path(path),
|
||||
|
|
@ -18,4 +12,4 @@ impl icon::Renderer for Renderer {
|
|||
MouseCursor::OutOfBounds,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue