Skip to content

Commit 3210f62

Browse files
committed
der: remove inaccurate "narrowing conversion" comment
`Tag` is `#[repr(u8)]`, so `tag as u8` is an exact, lossless conversion.
1 parent 2d2c580 commit 3210f62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/der.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl From<Tag> for u8 {
9393
#[expect(clippy::as_conversions)]
9494
fn from(tag: Tag) -> Self {
9595
tag as Self
96-
} // XXX: narrowing conversion.
96+
}
9797
}
9898

9999
#[inline(always)]

0 commit comments

Comments
 (0)