Skip to content

Commit 8b8d8a7

Browse files
Fix clippy lint by removing unnecessary cast
1 parent 3a82c1b commit 8b8d8a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data_types/chars.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl TryFrom<u16> for Char16 {
100100

101101
impl From<Char16> for u16 {
102102
fn from(char: Char16) -> u16 {
103-
char.0 as u16
103+
char.0
104104
}
105105
}
106106

0 commit comments

Comments
 (0)