mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-23 04:33:10 +00:00
clippy: use suggested to_string and dereferencing
This commit is contained in:
parent
263f9e55d3
commit
9fe6e7d4d2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue