mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-13 09:39:40 +01:00
Fix clippy::redundant_closure
warnings
This commit is contained in:
@@ -225,7 +225,7 @@ impl FromStr for StyleComponentList {
|
|||||||
fn from_str(s: &str) -> Result<Self> {
|
fn from_str(s: &str) -> Result<Self> {
|
||||||
Ok(StyleComponentList(
|
Ok(StyleComponentList(
|
||||||
s.split(",")
|
s.split(",")
|
||||||
.map(|s| ComponentAction::extract_from_str(s)) // If the component starts with "-", it's meant to be removed
|
.map(ComponentAction::extract_from_str) // If the component starts with "-", it's meant to be removed
|
||||||
.map(|(a, s)| Ok((a, StyleComponent::from_str(s)?)))
|
.map(|(a, s)| Ok((a, StyleComponent::from_str(s)?)))
|
||||||
.collect::<Result<Vec<(ComponentAction, StyleComponent)>>>()?,
|
.collect::<Result<Vec<(ComponentAction, StyleComponent)>>>()?,
|
||||||
))
|
))
|
||||||
|
Reference in New Issue
Block a user