pages build and deployment #439
pages-build-deployment
on: dynamic
build
10s
report-build-status
deploy
Annotations
3 errors and 11 warnings
|
build
Canceling since a higher priority waiting request for pages build and deployment @ master exists
|
|
build
The operation was canceled.
|
|
pages build and deployment
Canceling since a higher priority waiting request for pages build and deployment @ master exists
|
|
this `if` statement can be collapsed:
homie-influx/src/main.rs#L103
warning: this `if` statement can be collapsed
--> homie-influx/src/main.rs:103:13
|
103 | / if fresh {
104 | | if let Err(e) = send_property_value(
105 | | controller,
106 | | influx_db_client,
... |
115 | | }
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
103 ~ if fresh
104 ~ && let Err(e) = send_property_value(
105 | controller,
...
113 | log::error!("{e:?}");
114 ~ }
|
|
|
this `if` statement can be collapsed:
homie-influx/src/influx.rs#L17
warning: this `if` statement can be collapsed
--> homie-influx/src/influx.rs:17:13
|
17 | / if let Some(property) = node.properties.get(&property_id) {
18 | | if let Some(point) =
19 | | point_for_property_value(device, node, property, SystemTime::now())
... |
27 | | }
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
17 ~ if let Some(property) = node.properties.get(&property_id)
18 ~ && let Some(point) =
19 | point_for_property_value(device, node, property, SystemTime::now())
...
25 | .wrap_err("Failed to send property value update to InfluxDB")?;
26 ~ }
|
|
|
this `if` statement can be collapsed:
homie-influx/src/influx.rs#L16
warning: this `if` statement can be collapsed
--> homie-influx/src/influx.rs:16:9
|
16 | / if let Some(node) = device.nodes.get(&node_id) {
17 | | if let Some(property) = node.properties.get(&property_id) {
18 | | if let Some(point) =
19 | | point_for_property_value(device, node, property, SystemTime::now())
... |
28 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
16 ~ if let Some(node) = device.nodes.get(&node_id)
17 ~ && let Some(property) = node.properties.get(&property_id) {
18 | if let Some(point) =
...
26 | }
27 ~ }
|
|
|
this `if` statement can be collapsed:
homie-influx/src/influx.rs#L15
warning: this `if` statement can be collapsed
--> homie-influx/src/influx.rs:15:5
|
15 | / if let Some(device) = controller.devices().get(&device_id) {
16 | | if let Some(node) = device.nodes.get(&node_id) {
17 | | if let Some(property) = node.properties.get(&property_id) {
18 | | if let Some(point) =
... |
29 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `#[warn(clippy::collapsible_if)]` on by default
help: collapse nested if block
|
15 ~ if let Some(device) = controller.devices().get(&device_id)
16 ~ && let Some(node) = device.nodes.get(&node_id) {
17 | if let Some(property) = node.properties.get(&property_id) {
...
27 | }
28 ~ }
|
|
|
this `if` statement can be collapsed:
mijia-homie/src/main.rs#L712
warning: this `if` statement can be collapsed
--> mijia-homie/src/main.rs:712:5
|
712 | / if let BluetoothEvent::Device {
713 | | id,
714 | | event: DeviceEvent::ServiceData { service_data },
715 | | } = event
... |
745 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `#[warn(clippy::collapsible_if)]` on by default
help: collapse nested if block
|
715 ~ } = event
716 ~ && let Some(reading) = Reading::decode(&service_data) {
717 | info!("{id}: {reading}");
...
742 | }
743 ~ }
|
|
|
this `if` statement can be collapsed:
applehat/src/ui.rs#L243
warning: this `if` statement can be collapsed
--> applehat/src/ui.rs:243:17
|
243 | / if let (Some(temperature_node), Some(humidity_node)) = (
244 | | node.properties.get(TEMPERATURE_PROPERTY_ID),
245 | | node.properties.get(HUMIDITY_PROPERTY_ID),
246 | | ) {
... |
252 | | }
| |_________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
246 ~ )
247 ~ && temperature_node.datatype == Some(Datatype::Float)
248 | && humidity_node.datatype == Some(Datatype::Integer)
249 | {
250 | nodes.push((device_id, node_id, node));
251 ~ }
|
|
|
this `if` statement can be collapsed:
homie-controller/src/types.rs#L364
warning: this `if` statement can be collapsed
--> homie-controller/src/types.rs:364:13
|
364 | / if let Some(homie_versions) = homie_versions.strip_prefix('[') {
365 | | if let Some(homie_versions) = homie_versions.strip_suffix(']') {
366 | | return Ok(Extension {
367 | | id: (*id).to_owned(),
... |
372 | | }
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
364 ~ if let Some(homie_versions) = homie_versions.strip_prefix('[')
365 ~ && let Some(homie_versions) = homie_versions.strip_suffix(']') {
366 | return Ok(Extension {
...
370 | });
371 ~ }
|
|
|
this `if` statement can be collapsed:
homie-controller/src/types.rs#L363
warning: this `if` statement can be collapsed
--> homie-controller/src/types.rs:363:9
|
363 | / if let [id, version, homie_versions] = parts.as_slice() {
364 | | if let Some(homie_versions) = homie_versions.strip_prefix('[') {
365 | | if let Some(homie_versions) = homie_versions.strip_suffix(']') {
366 | | return Ok(Extension {
... |
373 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
363 ~ if let [id, version, homie_versions] = parts.as_slice()
364 ~ && let Some(homie_versions) = homie_versions.strip_prefix('[') {
365 | if let Some(homie_versions) = homie_versions.strip_suffix(']') {
...
371 | }
372 ~ }
|
|
|
this `if` statement can be collapsed:
btsensor/src/lib.rs#L45
warning: this `if` statement can be collapsed
--> btsensor/src/lib.rs:45:9
|
45 | / if let Some(data) = service_data.get(&atc::UUID) {
46 | | if let Some(reading) = atc::SensorReading::decode(data) {
47 | | return Some(Self::Atc(reading));
48 | | }
49 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `#[warn(clippy::collapsible_if)]` on by default
help: collapse nested if block
|
45 ~ if let Some(data) = service_data.get(&atc::UUID)
46 ~ && let Some(reading) = atc::SensorReading::decode(data) {
47 | return Some(Self::Atc(reading));
48 ~ }
|
|
|
this `if` statement can be collapsed:
homie-controller/src/types.rs#L227
warning: this `if` statement can be collapsed
--> homie-controller/src/types.rs:227:9
|
227 | / if let Some(actual) = self.datatype {
228 | | if actual != Datatype::Color {
229 | | return Err(ValueError::WrongDatatype {
230 | | expected: Datatype::Color,
... |
234 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `#[warn(clippy::collapsible_if)]` on by default
help: collapse nested if block
|
227 ~ if let Some(actual) = self.datatype
228 ~ && actual != Datatype::Color {
229 | return Err(ValueError::WrongDatatype {
...
232 | });
233 ~ }
|
|
|
this `if` statement can be collapsed:
homie-device/src/lib.rs#L312
warning: this `if` statement can be collapsed
--> homie-device/src/lib.rs:312:29
|
312 | / ... if let Some(callback) = update_callback.as_mut() {
313 | | ... if let Some(value) = callback(
314 | | ... node_id.to_string(),
315 | | ... property_id.to_string(),
... |
327 | | ... }
| |_______________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `#[warn(clippy::collapsible_if)]` on by default
help: collapse nested if block
|
312 ~ if let Some(callback) = update_callback.as_mut()
313 ~ && let Some(value) = callback(
314 | node_id.to_string(),
...
325 | .await?;
326 ~ }
|
|