Fix plugevents importer for JSON format changes. #1231
Annotations
5 warnings
manual implementation of `Option::map`:
src/importers/icalendar.rs#L225
warning: manual implementation of `Option::map`
--> src/importers/icalendar.rs:225:12
|
225 | } else if let Some(attendee) = event
| ____________^
226 | | .multi_properties()
227 | | .get("ATTENDEE")
228 | | .and_then(|attendees| attendees.first())
... |
232 | | None
233 | | };
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_map
= note: `#[warn(clippy::manual_map)]` on by default
help: try
|
225 ~ } else { event
226 + .multi_properties()
227 + .get("ATTENDEE")
228 ~ .and_then(|attendees| attendees.first()).map(|attendee| attendee.value().to_owned()) };
|
|
you seem to be trying to use `match` for an equality check. Consider using `if`:
src/importers/icalendar/balfolknl.rs#L137
warning: you seem to be trying to use `match` for an equality check. Consider using `if`
--> src/importers/icalendar/balfolknl.rs:137:9
|
137 | / match event.city.as_str() {
138 | | "Lent" => event.city = "Nijmegen".to_string(),
139 | | _ => {}
140 | | }
| |_________^ help: try: `if event.city.as_str() == "Lent" { event.city = "Nijmegen".to_string() }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match
= note: `#[warn(clippy::single_match)]` on by default
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/importers/icalendar/balfolknl.rs#L135
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/importers/icalendar/balfolknl.rs:135:35
|
135 | event.name = shorten_name(&raw_name);
| ^^^^^^^^^ help: change this to: `raw_name`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
build
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|