diff options
| author | 2025-02-21 01:22:56 +0100 | |
|---|---|---|
| committer | 2025-02-21 01:37:13 +0100 | |
| commit | 9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd (patch) | |
| tree | dd8a9407058915c152ce6544ba20b75240ca85be /graphics | |
| parent | 28caeccf22d163e9014b5ed26334b6085683a28b (diff) | |
| download | iced-9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd.tar.gz iced-9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd.tar.bz2 iced-9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd.zip | |
Run `cargo fmt`
Diffstat (limited to 'graphics')
| -rw-r--r-- | graphics/src/compositor.rs | 4 | ||||
| -rw-r--r-- | graphics/src/geometry/path/builder.rs | 10 | ||||
| -rw-r--r-- | graphics/src/image.rs | 2 | ||||
| -rw-r--r-- | graphics/src/settings.rs | 2 | 
4 files changed, 10 insertions, 8 deletions
| diff --git a/graphics/src/compositor.rs b/graphics/src/compositor.rs index 0b862bdb..fadf41d9 100644 --- a/graphics/src/compositor.rs +++ b/graphics/src/compositor.rs @@ -120,9 +120,7 @@ pub trait Default {  #[derive(Clone, PartialEq, Eq, Debug, Error)]  pub enum SurfaceError {      /// A timeout was encountered while trying to acquire the next frame. -    #[error( -        "A timeout was encountered while trying to acquire the next frame" -    )] +    #[error("A timeout was encountered while trying to acquire the next frame")]      Timeout,      /// The underlying surface has changed, and therefore the surface must be updated.      #[error( diff --git a/graphics/src/geometry/path/builder.rs b/graphics/src/geometry/path/builder.rs index 44410f6d..e814a3a7 100644 --- a/graphics/src/geometry/path/builder.rs +++ b/graphics/src/geometry/path/builder.rs @@ -1,4 +1,4 @@ -use crate::geometry::path::{arc, Arc, Path}; +use crate::geometry::path::{Arc, Path, arc};  use crate::core::border;  use crate::core::{Point, Radians, Size}; @@ -171,8 +171,12 @@ impl Builder {          radius: border::Radius,      ) {          let min_size = (size.height / 2.0).min(size.width / 2.0); -        let [top_left_corner, top_right_corner, bottom_right_corner, bottom_left_corner] = -            radius.into(); +        let [ +            top_left_corner, +            top_right_corner, +            bottom_right_corner, +            bottom_left_corner, +        ] = radius.into();          self.move_to(Point::new(              top_left.x + min_size.min(top_left_corner), diff --git a/graphics/src/image.rs b/graphics/src/image.rs index 67a5e0cf..171edd80 100644 --- a/graphics/src/image.rs +++ b/graphics/src/image.rs @@ -2,9 +2,9 @@  #[cfg(feature = "image")]  pub use ::image as image_rs; +use crate::core::Rectangle;  use crate::core::image;  use crate::core::svg; -use crate::core::Rectangle;  /// A raster or vector image.  #[derive(Debug, Clone, PartialEq)] diff --git a/graphics/src/settings.rs b/graphics/src/settings.rs index 2e8275c6..118ed73b 100644 --- a/graphics/src/settings.rs +++ b/graphics/src/settings.rs @@ -1,5 +1,5 @@ -use crate::core::{Font, Pixels};  use crate::Antialiasing; +use crate::core::{Font, Pixels};  /// The settings of a renderer.  #[derive(Debug, Clone, Copy, PartialEq)] | 
