Skip to content

Commit 00913bd

Browse files
committed
style: cargo fmt for rfc8949 changes
1 parent c7a794e commit 00913bd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ciborium/src/ser/mod.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl<W: Write> Serializer<W> {
8686
pub fn new(encoder: impl Into<Encoder<W>>, canonicalization: CanonicalizationScheme) -> Self {
8787
Self {
8888
encoder: encoder.into(),
89-
canonicalization
89+
canonicalization,
9090
}
9191
}
9292
}
@@ -718,7 +718,10 @@ pub fn to_vec<T: ?Sized + ser::Serialize>(value: &T) -> Result<Vec<u8>, Error<st
718718
/// ```
719719
#[cfg(feature = "std")]
720720
#[inline]
721-
pub fn to_vec_canonical<T: ?Sized + ser::Serialize>(value: &T, scheme: CanonicalizationScheme) -> Result<Vec<u8>, Error<std::io::Error>> {
721+
pub fn to_vec_canonical<T: ?Sized + ser::Serialize>(
722+
value: &T,
723+
scheme: CanonicalizationScheme,
724+
) -> Result<Vec<u8>, Error<std::io::Error>> {
722725
let mut buffer = std::vec::Vec::with_capacity(1024);
723726
let mut serializer = Serializer::new(&mut buffer, scheme);
724727
value.serialize(&mut serializer)?;
@@ -792,4 +795,4 @@ where
792795
{
793796
let mut encoder = Serializer::new(writer, scheme);
794797
value.serialize(&mut encoder)
795-
}
798+
}

0 commit comments

Comments
 (0)