Skip to content

Commit

Permalink
Remove some unnecessary as casts
Browse files Browse the repository at this point in the history
This fixes a clippy lint.
  • Loading branch information
nicholasbishop committed Nov 28, 2022
1 parent 6703626 commit ef6f83b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ pub mod argument {
SignedInt::Int(x) => x as i64,
SignedInt::Char(x) => x as i64,
SignedInt::Short(x) => x as i64,
SignedInt::Long(x) => x as i64,
SignedInt::LongLong(x) => x as i64,
SignedInt::Long(x) => x,
SignedInt::LongLong(x) => x,
SignedInt::Isize(x) => x as i64,
}
}
Expand Down Expand Up @@ -298,8 +298,8 @@ pub mod argument {
UnsignedInt::Int(x) => x as u64,
UnsignedInt::Char(x) => x as u64,
UnsignedInt::Short(x) => x as u64,
UnsignedInt::Long(x) => x as u64,
UnsignedInt::LongLong(x) => x as u64,
UnsignedInt::Long(x) => x,
UnsignedInt::LongLong(x) => x,
UnsignedInt::Isize(x) => x as u64,
}
}
Expand Down

0 comments on commit ef6f83b

Please sign in to comment.