Run clippy fix
This commit is contained in:
1 parent
e9729e9956
commit
e2d6cd7258
19 files changed
+123
-158
No files matched your search
@@ -142,12 +142,12 @@ fn parse_ical_datetime(value: &str, property: &Property) -> Result<Option<i64>>
|
||||
}
|
||||
|
||||
fn extract_email_from_mailto(value: Option<&str>) -> Option<String> {
|
||||
value.and_then(|v| {
|
||||
value.map(|v| {
|
||||
// ORGANIZER and ATTENDEE often have format: mailto:user@example.com
|
||||
if v.starts_with("mailto:") {
|
||||
Some(v.trim_start_matches("mailto:").to_string())
|
||||
v.trim_start_matches("mailto:").to_string()
|
||||
} else {
|
||||
Some(v.to_string())
|
||||
v.to_string()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user