Skip to content

Commit 43df7dc

Browse files
committed
Run cargo fmt with reorder_impl_items set to true
1 parent faa5a10 commit 43df7dc

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

src/comment.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,6 +1139,7 @@ impl<'a> CommentReducer<'a> {
11391139

11401140
impl<'a> Iterator for CommentReducer<'a> {
11411141
type Item = char;
1142+
11421143
fn next(&mut self) -> Option<Self::Item> {
11431144
loop {
11441145
let mut c = self.iter.next()?;

src/config/options.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ impl WidthHeuristics {
239239
single_line_if_else_max_width: 0,
240240
}
241241
}
242+
242243
// scale the default WidthHeuristics according to max_width
243244
pub fn scaled(max_width: usize) -> WidthHeuristics {
244245
let mut max_width_ratio: f32 = max_width as f32 / 100.0; // 100 is the default width -> default ratio is 1

src/imports.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,9 +799,11 @@ mod test {
799799
fn bump(&mut self) {
800800
self.input.next().unwrap();
801801
}
802+
802803
fn eat(&mut self, c: char) {
803804
assert!(self.input.next().unwrap() == c);
804805
}
806+
805807
fn push_segment(
806808
result: &mut Vec<UseSegment>,
807809
buf: &mut String,
@@ -825,6 +827,7 @@ mod test {
825827
}
826828
}
827829
}
830+
828831
fn parse_in_list(&mut self) -> UseTree {
829832
let mut result = vec![];
830833
let mut buf = String::new();

src/test/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@ struct CharsIgnoreNewlineRepr<'a>(Peekable<Chars<'a>>);
568568

569569
impl<'a> Iterator for CharsIgnoreNewlineRepr<'a> {
570570
type Item = char;
571+
571572
fn next(&mut self) -> Option<char> {
572573
self.0.next().map(|c| {
573574
if c == '\r' {

0 commit comments

Comments
 (0)