mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-23 05:34:57 +02:00
refactor: run clippy after updating to Rust 1.80 (#1502)
This commit is contained in:
parent
29029b86fb
commit
a794cc5123
@ -746,10 +746,11 @@ impl Prefix {
|
||||
is_ignoring_case,
|
||||
is_searching_with_regex,
|
||||
);
|
||||
} else if let Some((prefix_type, StringQuery::Value(regex_string))) = &mut self.regex_prefix
|
||||
} else if let Some((
|
||||
PrefixType::Pid | PrefixType::Name | PrefixType::State | PrefixType::User,
|
||||
StringQuery::Value(regex_string),
|
||||
)) = &mut self.regex_prefix
|
||||
{
|
||||
match prefix_type {
|
||||
PrefixType::Pid | PrefixType::Name | PrefixType::State | PrefixType::User => {
|
||||
let escaped_regex: String;
|
||||
let final_regex_string = &format!(
|
||||
"{}{}{}{}",
|
||||
@ -772,9 +773,6 @@ impl Prefix {
|
||||
));
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
@ -108,8 +108,7 @@ impl Painter {
|
||||
|
||||
/// Draws the process search field.
|
||||
/// - `widget_id` represents the widget ID of the search box itself --- NOT
|
||||
/// the process widget
|
||||
/// state that is stored.
|
||||
/// the process widget state that is stored.
|
||||
fn draw_search_field(
|
||||
&self, f: &mut Frame<'_>, app_state: &mut App, draw_loc: Rect, draw_border: bool,
|
||||
widget_id: u64,
|
||||
@ -313,8 +312,7 @@ impl Painter {
|
||||
|
||||
/// Draws the process sort box.
|
||||
/// - `widget_id` represents the widget ID of the sort box itself --- NOT
|
||||
/// the process widget
|
||||
/// state that is stored.
|
||||
/// the process widget state that is stored.
|
||||
fn draw_sort_table(
|
||||
&self, f: &mut Frame<'_>, app_state: &mut App, draw_loc: Rect, widget_id: u64,
|
||||
) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user