mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-15 09:28:26 +00:00
Fix clippy::redundant_closure
warnings
This commit is contained in:
parent
3d0f0c0565
commit
f0e2f642e0
@ -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)>>>()?,
|
||||||
))
|
))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user