Skip to content

Commit

Permalink
Do not pretty-print JSON
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
  • Loading branch information
Shnatsel committed Jul 17, 2024
1 parent 0f30ba3 commit 008892e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cyclonedx-bom/src/models/bom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ impl Bom {
writer: &mut W,
) -> Result<(), crate::errors::JsonWriteError> {
let bom: crate::specs::v1_3::bom::Bom = self.try_into()?;
serde_json::to_writer_pretty(writer, &bom)?;
serde_json::to_writer(writer, &bom)?;
Ok(())
}

Expand Down Expand Up @@ -289,7 +289,7 @@ impl Bom {
writer: &mut W,
) -> Result<(), crate::errors::JsonWriteError> {
let bom: crate::specs::v1_4::bom::Bom = self.try_into()?;
serde_json::to_writer_pretty(writer, &bom)?;
serde_json::to_writer(writer, &bom)?;
Ok(())
}

Expand Down Expand Up @@ -329,7 +329,7 @@ impl Bom {
writer: &mut W,
) -> Result<(), crate::errors::JsonWriteError> {
let bom: crate::specs::v1_5::bom::Bom = self.try_into()?;
serde_json::to_writer_pretty(writer, &bom)?;
serde_json::to_writer(writer, &bom)?;
Ok(())
}

Expand Down

0 comments on commit 008892e

Please sign in to comment.