aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/impls.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-02-08 11:49:43 +0000
committerAleksey Kladov <[email protected]>2019-02-08 11:49:43 +0000
commit12e3b4c70b5ef23b2fdfc197296d483680e125f9 (patch)
tree71baa0e0a62f9f6b61450501c5f821f67badf9e4 /crates/ra_ide_api/src/impls.rs
parent5cb1d41a30d25cbe136402644bf5434dd667f1e5 (diff)
reformat the world
Diffstat (limited to 'crates/ra_ide_api/src/impls.rs')
-rw-r--r--crates/ra_ide_api/src/impls.rs24
1 files changed, 5 insertions, 19 deletions
diff --git a/crates/ra_ide_api/src/impls.rs b/crates/ra_ide_api/src/impls.rs
index 4fb054139..444c4aeb2 100644
--- a/crates/ra_ide_api/src/impls.rs
+++ b/crates/ra_ide_api/src/impls.rs
@@ -83,9 +83,7 @@ mod tests {
83 83
84 let navs = analysis.goto_implementation(pos).unwrap().unwrap().info; 84 let navs = analysis.goto_implementation(pos).unwrap().unwrap().info;
85 assert_eq!(navs.len(), expected.len()); 85 assert_eq!(navs.len(), expected.len());
86 navs.into_iter() 86 navs.into_iter().enumerate().for_each(|(i, nav)| nav.assert_match(expected[i]));
87 .enumerate()
88 .for_each(|(i, nav)| nav.assert_match(expected[i]));
89 } 87 }
90 88
91 #[test] 89 #[test]
@@ -109,10 +107,7 @@ mod tests {
109 impl Foo {} 107 impl Foo {}
110 impl Foo {} 108 impl Foo {}
111 ", 109 ",
112 &[ 110 &["impl IMPL_BLOCK FileId(1) [12; 23)", "impl IMPL_BLOCK FileId(1) [24; 35)"],
113 "impl IMPL_BLOCK FileId(1) [12; 23)",
114 "impl IMPL_BLOCK FileId(1) [24; 35)",
115 ],
116 ); 111 );
117 } 112 }
118 113
@@ -129,10 +124,7 @@ mod tests {
129 impl super::Foo {} 124 impl super::Foo {}
130 } 125 }
131 ", 126 ",
132 &[ 127 &["impl IMPL_BLOCK FileId(1) [24; 42)", "impl IMPL_BLOCK FileId(1) [57; 75)"],
133 "impl IMPL_BLOCK FileId(1) [24; 42)",
134 "impl IMPL_BLOCK FileId(1) [57; 75)",
135 ],
136 ); 128 );
137 } 129 }
138 130
@@ -149,10 +141,7 @@ mod tests {
149 //- /b.rs 141 //- /b.rs
150 impl crate::Foo {} 142 impl crate::Foo {}
151 ", 143 ",
152 &[ 144 &["impl IMPL_BLOCK FileId(2) [0; 18)", "impl IMPL_BLOCK FileId(3) [0; 18)"],
153 "impl IMPL_BLOCK FileId(2) [0; 18)",
154 "impl IMPL_BLOCK FileId(3) [0; 18)",
155 ],
156 ); 145 );
157 } 146 }
158 147
@@ -183,10 +172,7 @@ mod tests {
183 //- /b.rs 172 //- /b.rs
184 impl crate::T for crate::Foo {} 173 impl crate::T for crate::Foo {}
185 ", 174 ",
186 &[ 175 &["impl IMPL_BLOCK FileId(2) [0; 31)", "impl IMPL_BLOCK FileId(3) [0; 31)"],
187 "impl IMPL_BLOCK FileId(2) [0; 31)",
188 "impl IMPL_BLOCK FileId(3) [0; 31)",
189 ],
190 ); 176 );
191 } 177 }
192} 178}