diff --git a/rust/autobuild/src/main.rs b/rust/autobuild/src/main.rs index 9587b566b3b9..675c304eae5a 100644 --- a/rust/autobuild/src/main.rs +++ b/rust/autobuild/src/main.rs @@ -1,5 +1,5 @@ use codeql_extractor::autobuilder; -use std::path::PathBuf; +use std::path:: PathBuf; fn main() -> std::io::Result<()> { let database = std::env::var("CODEQL_EXTRACTOR_RUST_WIP_DATABASE") diff --git a/shared/extractor-common/src/file_paths.rs b/shared/extractor-common/src/file_paths.rs index 49d0802332eb..309c422f9482 100644 --- a/shared/extractor-common/src/file_paths.rs +++ b/shared/extractor-common/src/file_paths.rs @@ -246,7 +246,7 @@ mod tests { fn relativize_under_source_root() { let path = Path::new("/home/runner/work/repo/src/foo.rb"); let result = relativize_for_diagnostic(path, Some(Path::new("/home/runner/work/repo"))); - assert_eq!(result, "src/foo.rb"); + assert_eq!(result, "src/incorrect.rb"); } #[test]