Skip to content

Commit

Permalink
chore: fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
gibbz00 committed Apr 28, 2024
1 parent 4023a9c commit 11de6d7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions prost-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ mod protobuf;

use core::convert::TryFrom;
use core::fmt;
use core::i32;
use core::i64;
use core::str::FromStr;
use core::time;

Expand Down
2 changes: 0 additions & 2 deletions prost/src/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ use alloc::vec::Vec;
use core::cmp::min;
use core::mem;
use core::str;
use core::u32;
use core::usize;

use ::bytes::{Buf, BufMut, Bytes};

Expand Down
2 changes: 1 addition & 1 deletion prost/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ where
B: Buf,
{
let length = decode_varint(&mut buf)?;
if length > usize::max_value() as u64 {
if length > usize::MAX as u64 {
return Err(DecodeError::new(
"length delimiter exceeds maximum usize value",
));
Expand Down

0 comments on commit 11de6d7

Please sign in to comment.