Skip to content

Commit

Permalink
kind of dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed Jan 25, 2025
1 parent d68e157 commit 45da236
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,6 @@ grit_beta = [
# "grit_tracing",
]
grit_timing = []
# Copied from otel
experimental_metadata_attributes = []
logs_level_enabled = []
12 changes: 6 additions & 6 deletions crates/core/src/problem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,12 @@ impl Problem {
continue;
}
if let Some(name) = message.file_name() {
if let Ok(path) = PathBuf::from_str(name) {
if let Some(done_file) =
done_files.get_mut(path.to_string_lossy().as_ref())
{
done_file.has_results = Some(true);
}
// .unwrap() is safe, because from_str is infallible
let path = PathBuf::from_str(name).unwrap();
if let Some(done_file) =
done_files.get_mut(path.to_string_lossy().as_ref())
{
done_file.has_results = Some(true);
}
}
}
Expand Down

0 comments on commit 45da236

Please sign in to comment.