Skip to content

Commit

Permalink
fix(module): Not display for Content::Bytes in Copy
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Gil <[email protected]>
  • Loading branch information
pando85 committed Jul 4, 2024
1 parent bf18bd2 commit 7a16fe4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rash_core/src/modules/copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,11 @@ enum Content {
Bytes(Vec<u8>),
}

// Implement std::fmt::Display for Content
impl fmt::Display for Content {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Content::Str(s) => write!(f, "{}", s),
Content::Bytes(b) => write!(f, "{:?}", b),
Content::Bytes(_) => Ok(()),
}
}
}
Expand Down

0 comments on commit 7a16fe4

Please sign in to comment.