这是indexloc提供的服务,不要输入任何密码
Skip to content

build(deps): bump toml from 0.9.7 to 0.9.8 #1787

build(deps): bump toml from 0.9.7 to 0.9.8

build(deps): bump toml from 0.9.7 to 0.9.8 #1787

Triggered via pull request October 10, 2025 15:59
Status Success
Total duration 2m 52s
Artifacts

rust.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 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/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: applehat/src/ui.rs#L75
warning: this `if` statement can be collapsed --> applehat/src/ui.rs:75:9 | 75 | / if self.selected_device_id.is_none() || self.selected_node_id.is_none() { 76 | | if let Some((device_id, node_id, _)) = nodes.first() { 77 | | self.selected_device_id = Some(device_id.to_string()); 78 | | self.selected_node_id = Some(node_id.to_string()); 79 | | } 80 | | } | |_________^ | = 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 | 75 ~ if (self.selected_device_id.is_none() || self.selected_node_id.is_none()) { 76 ~ && let Some((device_id, node_id, _)) = nodes.first() { 77 | self.selected_device_id = Some(device_id.to_string()); 78 | self.selected_node_id = Some(node_id.to_string()); 79 ~ } |
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: 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 ~ } |
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 ~ } |