Trying very hard not to miss calendar events
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Formatting

+8 -16
+2 -6
build.rs
··· 3 3 pkg_config::Config::new() 4 4 .probe("libedataserver-1.2") 5 5 .unwrap(); 6 - pkg_config::Config::new() 7 - .probe("libecal-2.0") 8 - .unwrap(); 9 - pkg_config::Config::new() 10 - .probe("glib-2.0") 11 - .unwrap(); 6 + pkg_config::Config::new().probe("libecal-2.0").unwrap(); 7 + pkg_config::Config::new().probe("glib-2.0").unwrap(); 12 8 }
+2 -9
src/eds.rs
··· 253 253 unsafe { 254 254 let summary_ptr = ffi::i_cal_component_get_summary(comp); 255 255 let summary = if !summary_ptr.is_null() { 256 - CStr::from_ptr(summary_ptr) 257 - .to_string_lossy() 258 - .into_owned() 256 + CStr::from_ptr(summary_ptr).to_string_lossy().into_owned() 259 257 } else { 260 258 "(No title)".to_string() 261 259 }; ··· 282 280 let tm = libc::localtime(&timestamp); 283 281 let mut buf = vec![0u8; 64]; 284 282 let fmt = CString::new("%Y-%m-%d %H:%M").unwrap(); 285 - libc::strftime( 286 - buf.as_mut_ptr() as *mut c_char, 287 - buf.len(), 288 - fmt.as_ptr(), 289 - tm, 290 - ); 283 + libc::strftime(buf.as_mut_ptr() as *mut c_char, buf.len(), fmt.as_ptr(), tm); 291 284 CStr::from_ptr(buf.as_ptr() as *const c_char) 292 285 .to_string_lossy() 293 286 .into_owned()
+4 -1
src/main.rs
··· 8 8 let version = eds::GLibVersion::get(); 9 9 println!("Evolution Data Server test program"); 10 10 println!("Library version info:"); 11 - println!(" GLib version: {}.{}.{}", version.major, version.minor, version.micro); 11 + println!( 12 + " GLib version: {}.{}.{}", 13 + version.major, version.minor, version.micro 14 + ); 12 15 } 13 16 14 17 fn print_usage(program_name: &str) {