typo
This commit is contained in:
parent
7d09d72175
commit
40503f46d5
1 changed files with 2 additions and 2 deletions
|
@ -17,9 +17,9 @@ use crate::Event;
|
||||||
pub fn parse(content: &str, item_id: ItemId, sync_status: SyncStatus) -> Result<Item, Box<dyn Error>> {
|
pub fn parse(content: &str, item_id: ItemId, sync_status: SyncStatus) -> Result<Item, Box<dyn Error>> {
|
||||||
let mut reader = ical::IcalParser::new(content.as_bytes());
|
let mut reader = ical::IcalParser::new(content.as_bytes());
|
||||||
let parsed_item = match reader.next() {
|
let parsed_item = match reader.next() {
|
||||||
None => return Err(format!("Invalid uCal data to parse for item {}", item_id).into()),
|
None => return Err(format!("Invalid iCal data to parse for item {}", item_id).into()),
|
||||||
Some(item) => match item {
|
Some(item) => match item {
|
||||||
Err(err) => return Err(format!("Unable to parse uCal data for item {}: {}", item_id, err).into()),
|
Err(err) => return Err(format!("Unable to parse iCal data for item {}: {}", item_id, err).into()),
|
||||||
Ok(item) => item,
|
Ok(item) => item,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue