mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-26 22:20:18 +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
|
let rgb = rgb_list
|
||||||
.iter()
|
.iter()
|
||||||
.filter_map(|val| {
|
.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)
|
Some(res)
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|
Loading…
Reference in a new issue