diff --git a/frontends/rioterm/src/renderer/mod.rs b/frontends/rioterm/src/renderer/mod.rs index a1516a2670..0269d9eab9 100644 --- a/frontends/rioterm/src/renderer/mod.rs +++ b/frontends/rioterm/src/renderer/mod.rs @@ -276,11 +276,13 @@ impl Renderer { }; style.background_color = Some(self.named_colors.selection_background); } else if search_hints.is_some() - && search_hints.as_mut().is_some_and(|search| { - search.advance(Pos::new(line, Column(column))) - }) + && search_hints + .as_mut() + .is_some_and(|search| search.advance(Pos::new(line, Column(column)))) { - let is_focused = focused_match.as_ref().is_some_and(|fm| fm.contains(&Pos::new(line, Column(column)))); + let is_focused = focused_match + .as_ref() + .is_some_and(|fm| fm.contains(&Pos::new(line, Column(column)))); if is_focused { style.color = self.named_colors.search_focused_match_foreground; style.background_color = diff --git a/rio-backend/src/performer/handler.rs b/rio-backend/src/performer/handler.rs index 41231011e6..e9433e8d37 100644 --- a/rio-backend/src/performer/handler.rs +++ b/rio-backend/src/performer/handler.rs @@ -102,7 +102,9 @@ fn parse_number(input: &[u8]) -> Option { for c in input { let c = *c as char; if let Some(digit) = c.to_digit(10) { - num = num.checked_mul(10).and_then(|v| v.checked_add(digit as u8))? + num = num + .checked_mul(10) + .and_then(|v| v.checked_add(digit as u8))? } else { return None; }