From 9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 21 Feb 2025 01:22:56 +0100 Subject: Run `cargo fmt` --- graphics/src/compositor.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'graphics/src/compositor.rs') 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( -- cgit From c12beecd387ad57eef434b64598473f613e32f57 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 21 Feb 2025 01:41:42 +0100 Subject: Remove unnecessary `Future` imports --- graphics/src/compositor.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'graphics/src/compositor.rs') diff --git a/graphics/src/compositor.rs b/graphics/src/compositor.rs index fadf41d9..df3d41c3 100644 --- a/graphics/src/compositor.rs +++ b/graphics/src/compositor.rs @@ -8,7 +8,6 @@ use raw_window_handle::{HasDisplayHandle, HasWindowHandle}; use thiserror::Error; use std::borrow::Cow; -use std::future::Future; /// A graphics compositor that can draw to windows. pub trait Compositor: Sized { -- cgit