Allow identical conversion.
This commit is contained in:
parent
391b1886a7
commit
938c469b76
@ -24,6 +24,7 @@ pub(crate) fn exit() {
|
||||
::std::process::exit(0);
|
||||
}
|
||||
|
||||
#[allow(identity_conversion)]
|
||||
pub(crate) fn size() -> Result<(u16, u16)> {
|
||||
// http://rosettacode.org/wiki/Terminal_control/Dimensions#Library:_BSD_libc
|
||||
let mut size = winsize {
|
||||
|
Loading…
Reference in New Issue
Block a user