fix clippy #42

Merged
ben merged 4 commits from ben/Jobboerse:main into main 2023-01-28 20:40:42 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 1f8f3745b4 - Show all commits

fix clippy for rust 1.66

- still compatible with 1.64
Bennet Bleßmann 2023-01-28 20:25:50 +01:00 committed by Bennet Bleßmann
Signed by: ben
GPG key ID: 3BE1A1A3CBC3CF99

View file

@ -72,7 +72,7 @@ impl Attachment<NamedTempFile> {
) -> Result<Attachment<PathBuf>, PersistError> { ) -> Result<Attachment<PathBuf>, PersistError> {
let attachment_location = Self::attachment_filename(idx); let attachment_location = Self::attachment_filename(idx);
let file_path = folder_path.join(&attachment_location); let file_path = folder_path.join(&attachment_location);
self.attachment_location.persist(&file_path)?; self.attachment_location.persist(file_path)?;
Ok(Attachment { Ok(Attachment {
title: self.title, title: self.title,
file_name: self.file_name, file_name: self.file_name,

View file

@ -154,7 +154,7 @@ pub(crate) async fn edit_joboffer_post(
if let Some(tmp_file) = file { if let Some(tmp_file) = file {
// TODO error handling // TODO error handling
let _todo = let _todo =
tmp_file.persist(&job_offer_folder.join(&offer.attachment_location)); tmp_file.persist(job_offer_folder.join(&offer.attachment_location));
} }
Some(offer) Some(offer)