Skip to content

Commit 059d284

Browse files
committed
run rustfmt on test
1 parent 4d2dda4 commit 059d284

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

tests/rustdoc/anchor-id-duplicate-method-name-25001.rs

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// https://github.com/rust-lang/rust/issues/25001
2-
#![crate_name="issue_25001"]
2+
#![crate_name = "issue_25001"]
33

44
//@ has issue_25001/struct.Foo.html
55
pub struct Foo<T>(T);
@@ -16,30 +16,34 @@ impl Foo<u8> {
1616
}
1717
impl Foo<u16> {
1818
//@ has - '//*[@id="method.pass-1"]//h4[@class="code-header"]' 'fn pass() -> usize'
19-
pub fn pass() -> usize { 42 }
19+
pub fn pass() -> usize {
20+
42
21+
}
2022
}
2123
impl Foo<u32> {
2224
//@ has - '//*[@id="method.pass-2"]//h4[@class="code-header"]' 'fn pass() -> isize'
23-
pub fn pass() -> isize { 42 }
25+
pub fn pass() -> isize {
26+
42
27+
}
2428
}
2529

2630
impl<T> Bar for Foo<T> {
2731
//@ has - '//*[@id="associatedtype.Item"]//h4[@class="code-header"]' 'type Item = T'
28-
type Item=T;
32+
type Item = T;
2933

3034
//@ has - '//*[@id="method.quux"]//h4[@class="code-header"]' 'fn quux(self) -> T'
3135
fn quux(self) -> T {}
3236
}
3337
impl<'a, T> Bar for &'a Foo<T> {
3438
//@ has - '//*[@id="associatedtype.Item-1"]//h4[@class="code-header"]' "type Item = &'a T"
35-
type Item=&'a T;
39+
type Item = &'a T;
3640

3741
//@ has - '//*[@id="method.quux-1"]//h4[@class="code-header"]' "fn quux(self) -> &'a T"
3842
fn quux(self) -> &'a T {}
3943
}
4044
impl<'a, T> Bar for &'a mut Foo<T> {
4145
//@ has - '//*[@id="associatedtype.Item-2"]//h4[@class="code-header"]' "type Item = &'a mut T"
42-
type Item=&'a mut T;
46+
type Item = &'a mut T;
4347

4448
//@ has - '//*[@id="method.quux-2"]//h4[@class="code-header"]' "fn quux(self) -> &'a mut T"
4549
fn quux(self) -> &'a mut T {}

0 commit comments

Comments
 (0)