pages build and deployment #448
pages-build-deployment
on: dynamic
build
24s
report-build-status
7s
deploy
35s
Annotations
10 warnings
|
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/rust-1.91.0/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/rust-1.91.0/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/rust-1.91.0/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/rust-1.91.0/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:
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/rust-1.91.0/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:
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/rust-1.91.0/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#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/rust-1.91.0/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/rust-1.91.0/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:
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/rust-1.91.0/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 ~ }
|
|
|
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/rust-1.91.0/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 ~ }
|
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
github-pages
Expired
|
3.55 MB |
sha256:08f49c09b7c1735e83e613ddc87614e0c4d44b3f822497eb6457e8c9d1ac46ca
|
|