Skip to content

Commit a6d28f8

Browse files
authored
chore: Replace deprecated numeric api with primitive one (#1706)
1 parent 6d8f3b4 commit a6d28f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tonic/src/codec/encode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ fn finish_encoding(
235235
));
236236
}
237237

238-
if len > std::u32::MAX as usize {
238+
if len > u32::MAX as usize {
239239
return Err(Status::resource_exhausted(format!(
240240
"Cannot return body with more than 4GB of data but got {len} bytes"
241241
)));

0 commit comments

Comments
 (0)