Skip to content

Commit

Permalink
fix: redundant spaces in regenerated files
Browse files Browse the repository at this point in the history
  • Loading branch information
cwkang1998 committed Aug 30, 2024
1 parent cb97ef3 commit 69012c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/voyager-resolver-cairo/src/compiler/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ pub fn extract_file_imports(
let import_path = segments
.clone()
.into_iter()
.map(|x| x.as_syntax_node().get_text(db))
.map(|x| x.as_syntax_node().get_text(db).trim().to_string())
.join("::");

// The resolver must resolve using the correct module that is importing it.
Expand Down
3 changes: 2 additions & 1 deletion crates/voyager-resolver-cairo/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ fn test_project_with_external_import_resolved() -> Result<()> {

ops::compile(package_ids, compile_opts, &ws).unwrap();

let reduced_project_path = source_dir.join("voyager-verify/import_external_deps_with_workspace");
let reduced_project_path =
source_dir.join("voyager-verify/import_external_deps_with_workspace");
run_scarb_build(reduced_project_path.to_str().unwrap()).unwrap();
Ok(())
}

0 comments on commit 69012c3

Please sign in to comment.