-
Notifications
You must be signed in to change notification settings - Fork 889
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues with formatting imports with comments
- Loading branch information
1 parent
a9ae746
commit 2026c0b
Showing
3 changed files
with
205 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
use std::{ | ||
fs, | ||
// (temporarily commented, we'll need this again in a second) io, | ||
}; | ||
|
||
use foo::{ | ||
self // this is important | ||
}; | ||
|
||
use foo :: bar | ||
; | ||
|
||
use foo::{bar}; | ||
|
||
use foo::{ | ||
bar | ||
// abc | ||
}; | ||
|
||
use foo::{ | ||
bar, | ||
// abc | ||
}; | ||
|
||
use foo::{ | ||
// 345 | ||
bar | ||
}; | ||
|
||
use foo::{ | ||
self | ||
// abc | ||
}; | ||
|
||
use foo::{ | ||
self, | ||
// abc | ||
}; | ||
|
||
use foo::{ | ||
// 345 | ||
self | ||
}; | ||
|
||
use foo::{ | ||
self // a | ||
, | ||
}; | ||
|
||
use foo::{ self /* a */ }; | ||
|
||
use foo::{ self /* a */, }; | ||
|
||
use foo::{ | ||
// abc | ||
abc::{ | ||
xyz | ||
// 123 | ||
} | ||
}; | ||
|
||
use foo::{ | ||
// abc | ||
bar, | ||
abc | ||
}; | ||
|
||
use foo::{ | ||
bar, | ||
// abc | ||
abc | ||
}; | ||
|
||
use foo::{ | ||
bar, | ||
abc | ||
// abc | ||
}; | ||
|
||
use foo::{ | ||
bar, | ||
abc, | ||
// abc | ||
}; | ||
|
||
use foo::{ | ||
self, | ||
// abc | ||
abc::{ | ||
xyz | ||
// 123 | ||
} | ||
}; | ||
|
||
use foo::{ | ||
self, | ||
// abc | ||
abc::{ | ||
// 123 | ||
xyz | ||
} | ||
}; | ||
|
||
use path::{self /*comment*/,}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
use std::{ | ||
fs, | ||
// (temporarily commented, we'll need this again in a second) io, | ||
}; | ||
|
||
use foo::{ | ||
self, // this is important | ||
}; | ||
|
||
use foo::bar; | ||
|
||
use foo::bar; | ||
|
||
use foo::{ | ||
bar, // abc | ||
}; | ||
|
||
use foo::{ | ||
bar, | ||
// abc | ||
}; | ||
|
||
use foo::{ | ||
// 345 | ||
bar, | ||
}; | ||
|
||
use foo::{ | ||
self, // abc | ||
}; | ||
|
||
use foo::{ | ||
self, | ||
// abc | ||
}; | ||
|
||
use foo::{ | ||
// 345 | ||
self, | ||
}; | ||
|
||
use foo::{ | ||
self, // a | ||
}; | ||
|
||
use foo::{self /* a */}; | ||
|
||
use foo::{self /* a */}; | ||
|
||
use foo::{ | ||
// abc | ||
abc::{ | ||
xyz, // 123 | ||
}, | ||
}; | ||
|
||
use foo::{ | ||
abc, | ||
// abc | ||
bar, | ||
}; | ||
|
||
use foo::{ | ||
// abc | ||
abc, | ||
bar, | ||
}; | ||
|
||
use foo::{ | ||
abc, // abc | ||
bar, | ||
}; | ||
|
||
use foo::{ | ||
abc, | ||
// abc | ||
bar, | ||
}; | ||
|
||
use foo::{ | ||
self, | ||
// abc | ||
abc::{ | ||
xyz, // 123 | ||
}, | ||
}; | ||
|
||
use foo::{ | ||
self, | ||
// abc | ||
abc::{ | ||
// 123 | ||
xyz, | ||
}, | ||
}; | ||
|
||
use path::{self /*comment*/}; |