Skip to content

Commit

Permalink
Adhere to Clippy provided suggestions
Browse files Browse the repository at this point in the history
Implement a couple of suggestions made by Clippy.
  • Loading branch information
d-e-s-o committed Aug 29, 2024
1 parent e04455f commit da80d04
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ version = "0.6.1"
features = ["derive"]

[dependencies.icalendar]
version = "0.16"
version = "0.16.5"
default-features = false
features = ["parser"]

Expand Down
4 changes: 2 additions & 2 deletions src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ pub mod tests {
let () = db.data.reserve(ITEM_CNT);

for item in items.iter() {
assert!(db.try_push(black_box(item.clone())).is_some());
assert!(db.try_push(black_box(Rc::clone(&item))).is_some());
}
});
}
Expand All @@ -849,7 +849,7 @@ pub mod tests {
let mut db = Db::from_iter([]);

let items = (1..ITEM_CNT)
.map(|i| db.push(i).deref().clone())
.map(|i| Rc::clone(db.push(i).deref()))
.collect::<HashSet<_>>();

let () = b.iter(|| {
Expand Down
2 changes: 1 addition & 1 deletion src/ser/backends/ical/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl From<&Task> for Todo {
todo.add_property(TAGS_PROPERTY, &tags);
}
if let Some(position) = &task.position {
todo.add_property(POSITION_PROPERTY, &position.to_string());
todo.add_property(POSITION_PROPERTY, position.to_string());
}

todo
Expand Down

0 comments on commit da80d04

Please sign in to comment.