Skip to content

Commit 1982227

Browse files
committed
fix clippy
1 parent f8f956f commit 1982227

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rust/cbork-utils/src/with_cbor_bytes.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ impl<T> Deref for WithCborBytes<T> {
2323
impl<T> WithCborBytes<T> {
2424
/// Creates a new instance of the `WithCborBytes` from the provided `obj` by encoding
2525
/// it and storing resulted `cbor_bytes`.
26+
///
27+
/// # Errors
28+
/// - Infallible
2629
pub fn new<C>(obj: T, ctx: &mut C) -> Result<Self, minicbor::encode::Error<Infallible>>
2730
where T: minicbor::Encode<C> {
2831
let cbor_bytes = minicbor::to_vec_with(&obj, ctx)?;

0 commit comments

Comments
 (0)