chore: make Clippy happy

This commit is contained in:
Marc Plano-Lesay 2025-08-01 11:47:35 +10:00
parent 868ae1ffef
commit 14165f0137
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
3 changed files with 3 additions and 6 deletions

View file

@ -19,7 +19,7 @@ fn main() {
let mock_dst = out_dir.join("mock.rs");
fs::write(&mock_dst, mock).unwrap();
println!("cargo:rerun-if-changed={}", src);
println!("cargo:rerun-if-changed={src}");
println!("cargo:rerun-if-changed={}", client_dst.display());
println!("cargo:rerun-if-changed={}", mock_dst.display());
}

View file

@ -48,7 +48,7 @@ where
T: Display,
{
match o {
Some(s) => format!("{}", s),
Some(s) => format!("{s}"),
None => String::new(),
}
}

View file

@ -53,10 +53,7 @@ pub async fn sync_date_of_birth(ctx: Context, vcard_file: &PathBuf) -> Result<()
Some(c) => match card.bday.as_ref().unwrap() {
DateTimeOrTextProperty::DateTime(dt) => {
let bday = vcard_date_to_naive_date(dt.value.first().unwrap().clone())?;
if c.date_of_birth
.as_ref()
.map_or(false, |bdate| bday == *bdate)
{
if c.date_of_birth.as_ref().is_some_and(|bdate| bday == *bdate) {
debug!(
"{} already has the proper date of birth, skipping",
formatted_name