From 8cf52672cbd345ebfcdfe0b4121fec306314bafa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?joseLu=C3=ADs?= Date: Tue, 6 Apr 2021 12:31:19 +0200 Subject: [PATCH] rust: rustfmt --- rust/src/cells/methods.rs | 4 ++-- rust/src/error.rs | 1 - rust/src/visual.rs | 10 +++------- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/rust/src/cells/methods.rs b/rust/src/cells/methods.rs index be1cd0432..c7ea7ff13 100644 --- a/rust/src/cells/methods.rs +++ b/rust/src/cells/methods.rs @@ -1,8 +1,8 @@ //! `NcCell` methods and associated functions. use crate::{ - cell_load, cstring, error, NcAlphaBits, NcCell, NcChannelPair, NcColor, NcEgc, - NcEgcBackstop, NcPaletteIndex, NcPlane, NcResult, NcRgb, NcStyleMask, NCRESULT_ERR, + cell_load, cstring, error, NcAlphaBits, NcCell, NcChannelPair, NcColor, NcEgc, NcEgcBackstop, + NcPaletteIndex, NcPlane, NcResult, NcRgb, NcStyleMask, NCRESULT_ERR, }; /// # NcCell constructors diff --git a/rust/src/error.rs b/rust/src/error.rs index 85fb300b1..3b2dbb907 100644 --- a/rust/src/error.rs +++ b/rust/src/error.rs @@ -74,7 +74,6 @@ impl NcError { msg: msg.to_string(), } } - } /// The result type for the Rust methods API. diff --git a/rust/src/visual.rs b/rust/src/visual.rs index 83fdd6dc7..f1015c197 100644 --- a/rust/src/visual.rs +++ b/rust/src/visual.rs @@ -28,8 +28,8 @@ use core::ptr::null_mut; use libc::c_void; use crate::{ - cstring, rstring, error, error_ref_mut, NcBlitter, NcDim, NcError, NcIntResult, NcPixel, NcPlane, NcRgb, - NcResult, NcTime, Notcurses, NCBLIT_PIXEL, NCRESULT_ERR, + cstring, error, error_ref_mut, rstring, NcBlitter, NcDim, NcError, NcIntResult, NcPixel, + NcPlane, NcResult, NcRgb, NcTime, Notcurses, NCBLIT_PIXEL, NCRESULT_ERR, }; /// How to scale an [`NcVisual`] during rendering @@ -373,7 +373,6 @@ impl NcVisual { ] } - /// Renders the decoded frame to the specified [NcPlane]. /// /// See [`NcVisualOptions`]. @@ -503,10 +502,7 @@ impl NcVisual { if res != null_mut() { return Ok(rstring![res]); } else { - Err(NcError::with_msg( - NCRESULT_ERR, - "NcVisual.subtitle()" - )) + Err(NcError::with_msg(NCRESULT_ERR, "NcVisual.subtitle()")) } } }