fix clippy #42
2 changed files with 2 additions and 2 deletions
fix clippy for rust 1.66
- still compatible with 1.64
commit
1f8f3745b4
|
|
@ -72,7 +72,7 @@ impl Attachment<NamedTempFile> {
|
|||
) -> Result<Attachment<PathBuf>, PersistError> {
|
||||
let attachment_location = Self::attachment_filename(idx);
|
||||
let file_path = folder_path.join(&attachment_location);
|
||||
self.attachment_location.persist(&file_path)?;
|
||||
self.attachment_location.persist(file_path)?;
|
||||
Ok(Attachment {
|
||||
title: self.title,
|
||||
file_name: self.file_name,
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ pub(crate) async fn edit_joboffer_post(
|
|||
if let Some(tmp_file) = file {
|
||||
// TODO error handling
|
||||
let _todo =
|
||||
tmp_file.persist(&job_offer_folder.join(&offer.attachment_location));
|
||||
tmp_file.persist(job_offer_folder.join(&offer.attachment_location));
|
||||
}
|
||||
|
||||
Some(offer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue