Skip to content

Commit 0f887ba

Browse files
febojoncinque
andcommitted
Remove second const
Co-authored-by: Jon C <[email protected]>
1 parent c9aa3dc commit 0f887ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/log/crate/src/logger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ macro_rules! impl_log_for_unsigned_integer {
224224
#[inline]
225225
fn write_with_args(&self, buffer: &mut [MaybeUninit<u8>], args: &[Argument]) -> usize {
226226
// The maximum number of digits that the type can have.
227-
const MAX_DIGITS: usize = const { $type::MAX.ilog10() as usize + 1 };
227+
const MAX_DIGITS: usize = $type::MAX.ilog10() as usize + 1;
228228

229229
if buffer.is_empty() {
230230
return 0;

0 commit comments

Comments
 (0)