Fix lint errors. Closes #149
This commit is contained in:
parent
80130260e9
commit
889628a6fe
|
@ -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")
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue