Skip to content

Commit 89cc237

Browse files
remi-dupredjc
authored andcommitted
fix: clippy lint (clippy::unnecessary cast)
From https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast: > warning: casting to the same type is unnecessary (`u16` -> `u16`)
1 parent 774f518 commit 89cc237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix_term.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub(crate) fn terminal_size(out: &Term) -> Option<(u16, u16)> {
5959
winsize
6060
};
6161
if winsize.ws_row > 0 && winsize.ws_col > 0 {
62-
Some((winsize.ws_row as u16, winsize.ws_col as u16))
62+
Some((winsize.ws_row, winsize.ws_col))
6363
} else {
6464
None
6565
}

0 commit comments

Comments
 (0)