Run cargo fmt
This commit is contained in:
parent
28caeccf22
commit
9ceb467e6e
59 changed files with 100 additions and 98 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue