From 12e3b4c70b5ef23b2fdfc197296d483680e125f9 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 8 Feb 2019 14:49:43 +0300 Subject: reformat the world --- crates/ra_ide_api_light/src/structure.rs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'crates/ra_ide_api_light/src/structure.rs') diff --git a/crates/ra_ide_api_light/src/structure.rs b/crates/ra_ide_api_light/src/structure.rs index 330a3694c..75afd1181 100644 --- a/crates/ra_ide_api_light/src/structure.rs +++ b/crates/ra_ide_api_light/src/structure.rs @@ -70,10 +70,7 @@ fn structure_node(node: &SyntaxNode) -> Option { node_range: node.syntax().range(), kind: node.syntax().kind(), detail, - deprecated: node - .attrs() - .filter_map(|x| x.as_named()) - .any(|x| x == "deprecated"), + deprecated: node.attrs().filter_map(|x| x.as_named()).any(|x| x == "deprecated"), }) } @@ -123,11 +120,9 @@ fn structure_node(node: &SyntaxNode) -> Option { let target_trait = im.target_trait(); let label = match target_trait { None => format!("impl {}", target_type.syntax().text()), - Some(t) => format!( - "impl {} for {}", - t.syntax().text(), - target_type.syntax().text(), - ), + Some(t) => { + format!("impl {} for {}", t.syntax().text(), target_type.syntax().text(),) + } }; let node = StructureNode { -- cgit v1.2.3