Fix lint errors. Closes #149

This commit is contained in:
Berry Phillips 2023-03-04 02:52:44 +00:00
parent 80130260e9
commit 889628a6fe
1 changed files with 2 additions and 2 deletions

View File

@ -381,7 +381,7 @@ impl<'a> Exporter<'a> {
.strip_prefix(&self.start_at.clone())
.expect("file should always be nested under root")
.to_path_buf();
let destination = &self.destination.join(&relative_path);
let destination = &self.destination.join(relative_path);
self.export_note(&file, destination)
})?;
Ok(())
@ -732,7 +732,7 @@ fn lookup_filename_in_vault<'a>(
path_normalized.ends_with(&filename_normalized)
|| path_normalized.ends_with(filename_normalized.clone() + ".md")
|| path_normalized_lowered.ends_with(&filename_normalized.to_lowercase())
|| path_normalized_lowered.ends_with(filename_normalized.to_lowercase())
|| path_normalized_lowered.ends_with(filename_normalized.to_lowercase() + ".md")
})
}