mirror of
https://github.com/ClementTsang/bottom.git
synced 2026-09-24 19:45:39 +00:00
clippy: use suggested to_string and dereferencing
This commit is contained in:
@@ -182,7 +182,7 @@ fn convert_rgb_to_color(rgb_str: &str) -> error::Result<Color> {
|
||||
let rgb = rgb_list
|
||||
.iter()
|
||||
.filter_map(|val| {
|
||||
if let Ok(res) = val.to_string().trim().parse::<u8>() {
|
||||
if let Ok(res) = (*(*val)).to_string().trim().parse::<u8>() {
|
||||
Some(res)
|
||||
} else {
|
||||
None
|
||||
|
||||
Reference in New Issue
Block a user