rust: rustfmt

pull/1516/head
joseLuís 3 years ago
parent 63d8645f04
commit 8cf52672cb

@ -1,8 +1,8 @@
//! `NcCell` methods and associated functions. //! `NcCell` methods and associated functions.
use crate::{ use crate::{
cell_load, cstring, error, NcAlphaBits, NcCell, NcChannelPair, NcColor, NcEgc, cell_load, cstring, error, NcAlphaBits, NcCell, NcChannelPair, NcColor, NcEgc, NcEgcBackstop,
NcEgcBackstop, NcPaletteIndex, NcPlane, NcResult, NcRgb, NcStyleMask, NCRESULT_ERR, NcPaletteIndex, NcPlane, NcResult, NcRgb, NcStyleMask, NCRESULT_ERR,
}; };
/// # NcCell constructors /// # NcCell constructors

@ -74,7 +74,6 @@ impl NcError {
msg: msg.to_string(), msg: msg.to_string(),
} }
} }
} }
/// The result type for the Rust methods API. /// The result type for the Rust methods API.

@ -28,8 +28,8 @@ use core::ptr::null_mut;
use libc::c_void; use libc::c_void;
use crate::{ use crate::{
cstring, rstring, error, error_ref_mut, NcBlitter, NcDim, NcError, NcIntResult, NcPixel, NcPlane, NcRgb, cstring, error, error_ref_mut, rstring, NcBlitter, NcDim, NcError, NcIntResult, NcPixel,
NcResult, NcTime, Notcurses, NCBLIT_PIXEL, NCRESULT_ERR, NcPlane, NcResult, NcRgb, NcTime, Notcurses, NCBLIT_PIXEL, NCRESULT_ERR,
}; };
/// How to scale an [`NcVisual`] during rendering /// How to scale an [`NcVisual`] during rendering
@ -373,7 +373,6 @@ impl NcVisual {
] ]
} }
/// Renders the decoded frame to the specified [NcPlane]. /// Renders the decoded frame to the specified [NcPlane].
/// ///
/// See [`NcVisualOptions`]. /// See [`NcVisualOptions`].
@ -503,10 +502,7 @@ impl NcVisual {
if res != null_mut() { if res != null_mut() {
return Ok(rstring![res]); return Ok(rstring![res]);
} else { } else {
Err(NcError::with_msg( Err(NcError::with_msg(NCRESULT_ERR, "NcVisual.subtitle()"))
NCRESULT_ERR,
"NcVisual.subtitle()"
))
} }
} }
} }

Loading…
Cancel
Save