diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 65b90d1da..880ecd20f 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -163,3 +163,6 @@ grit_beta = [ # "grit_tracing", ] grit_timing = [] +# Copied from otel +experimental_metadata_attributes = [] +logs_level_enabled = [] diff --git a/crates/core/src/problem.rs b/crates/core/src/problem.rs index 712ea0b36..a4ec7f451 100644 --- a/crates/core/src/problem.rs +++ b/crates/core/src/problem.rs @@ -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); } } }