Skip to content

Commit

Permalink
Tweak string handling
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Sep 14, 2023
1 parent 1e08d19 commit a79c18d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/visit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ impl<'ast> Visit<'ast> for DiscoveryVisitor<'_> {
let mut found = false;
let mut tried_paths = Vec::new();
for &tail in &[".rs", "/mod.rs"] {
let relative_path = dir.join(format!("{mod_name}{tail}"));
let relative_path = dir.join(mod_name.clone() + tail);
let full_path = self.root.join(&relative_path);
if full_path.is_file() {
trace!("found submodule in {full_path}");
Expand Down

0 comments on commit a79c18d

Please sign in to comment.