Compare commits
	
		
			2 commits
		
	
	
		
			ccfa116f0a
			...
			14165f0137
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 14165f0137 | |||
| 868ae1ffef | 
					 3 changed files with 3 additions and 6 deletions
				
			
		
							
								
								
									
										2
									
								
								build.rs
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								build.rs
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -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());
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -48,7 +48,7 @@ where
 | 
			
		|||
    T: Display,
 | 
			
		||||
{
 | 
			
		||||
    match o {
 | 
			
		||||
        Some(s) => format!("{}", s),
 | 
			
		||||
        Some(s) => format!("{s}"),
 | 
			
		||||
        None => String::new(),
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue