rust: rustfmt

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

@ -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

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

@ -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()"))
}
}
}

Loading…
Cancel
Save