clippy: use suggested to_string and dereferencing

This commit is contained in:
ClementTsang 2020-04-23 15:51:31 -04:00
parent 263f9e55d3
commit 9fe6e7d4d2

View file

@ -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