Use let chain to avoid clippy::unnecessary_unwrap (#46409)
No bug, just shows up running the tests on `clippy 0.1.92 (ded5c06cf2 2025-12-08)` Release Notes: - N/A
This commit is contained in:
1 parent
af6385a293
commit
3f2c7c6d30
1 file changed
+2
-2
@@ -1983,12 +1983,12 @@ impl Interactivity {
|
||||
) {
|
||||
use crate::{BorderStyle, TextAlign};
|
||||
|
||||
if global_id.is_some()
|
||||
if let Some(global_id) = global_id
|
||||
&& (style.debug || style.debug_below || cx.has_global::<crate::DebugBelow>())
|
||||
&& hitbox.is_hovered(window)
|
||||
{
|
||||
const FONT_SIZE: crate::Pixels = crate::Pixels(10.);
|
||||
let element_id = format!("{:?}", global_id.unwrap());
|
||||
let element_id = format!("{global_id:?}");
|
||||
let str_len = element_id.len();
|
||||
|
||||
let render_debug_text = |window: &mut Window| {
|
||||
|
||||
Reference in new issue
Block a user