Skip to content

Commit

Permalink
Fix new clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
michielp1807 committed Jan 10, 2025
1 parent b7f70a6 commit ff770c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ntp-proto/src/nts_record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl NtsRecord {
}
}
NtsRecord::Server { name, .. } => {
if name.as_bytes().len() >= (u16::MAX as usize) {
if name.len() >= (u16::MAX as usize) {
return Err(WriteError::TooLong);
}
}
Expand Down

0 comments on commit ff770c8

Please sign in to comment.