Skip to content

Commit

Permalink
Minor nit in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
howardwu committed Jan 28, 2024
1 parent 8334cfb commit 2c3b775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ledger/narwhal/data/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl<T: FromBytes + ToBytes + Send + 'static> ToBytes for Data<T> {
Self::Object(object) => {
// Serialize the object.
let buffer =
object.to_bytes_le().map_err(|err| error(format!("Failed to serialize a Data::Object: {err}")))?;
object.to_bytes_le().map_err(|e| error(format!("Failed to serialize 'Data::Object' - {e}")))?;
// Write the object.
u32::try_from(buffer.len()).map_err(error)?.write_le(&mut writer)?;
// Write the object.
Expand Down

0 comments on commit 2c3b775

Please sign in to comment.