Skip to content

Commit

Permalink
chore(deps): bump ariadne to 0.4.0 (#7710)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Apr 18, 2024
1 parent b743749 commit 3581076
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/fmt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ foundry-config.workspace = true

alloy-primitives.workspace = true

ariadne = "0.3"
ariadne = "0.4"
itertools.workspace = true
solang-parser.workspace = true
thiserror = "1"
Expand Down
4 changes: 4 additions & 0 deletions crates/fmt/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ pub fn print_diagnostics_report(
path: Option<&Path>,
diagnostics: Vec<Diagnostic>,
) -> std::io::Result<()> {
if diagnostics.is_empty() {
return Ok(());
}

let filename =
path.map(|p| p.file_name().unwrap().to_string_lossy().to_string()).unwrap_or_default();
for diag in diagnostics {
Expand Down

0 comments on commit 3581076

Please sign in to comment.