File tree Expand file tree Collapse file tree 4 files changed +6
-0
lines changed Expand file tree Collapse file tree 4 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1139,6 +1139,7 @@ impl<'a> CommentReducer<'a> {
1139
1139
1140
1140
impl < ' a > Iterator for CommentReducer < ' a > {
1141
1141
type Item = char ;
1142
+
1142
1143
fn next ( & mut self ) -> Option < Self :: Item > {
1143
1144
loop {
1144
1145
let mut c = self . iter . next ( ) ?;
Original file line number Diff line number Diff line change @@ -239,6 +239,7 @@ impl WidthHeuristics {
239
239
single_line_if_else_max_width : 0 ,
240
240
}
241
241
}
242
+
242
243
// scale the default WidthHeuristics according to max_width
243
244
pub fn scaled ( max_width : usize ) -> WidthHeuristics {
244
245
let mut max_width_ratio: f32 = max_width as f32 / 100.0 ; // 100 is the default width -> default ratio is 1
Original file line number Diff line number Diff line change @@ -799,9 +799,11 @@ mod test {
799
799
fn bump ( & mut self ) {
800
800
self . input . next ( ) . unwrap ( ) ;
801
801
}
802
+
802
803
fn eat ( & mut self , c : char ) {
803
804
assert ! ( self . input. next( ) . unwrap( ) == c) ;
804
805
}
806
+
805
807
fn push_segment (
806
808
result : & mut Vec < UseSegment > ,
807
809
buf : & mut String ,
@@ -825,6 +827,7 @@ mod test {
825
827
}
826
828
}
827
829
}
830
+
828
831
fn parse_in_list ( & mut self ) -> UseTree {
829
832
let mut result = vec ! [ ] ;
830
833
let mut buf = String :: new ( ) ;
Original file line number Diff line number Diff line change @@ -568,6 +568,7 @@ struct CharsIgnoreNewlineRepr<'a>(Peekable<Chars<'a>>);
568
568
569
569
impl < ' a > Iterator for CharsIgnoreNewlineRepr < ' a > {
570
570
type Item = char ;
571
+
571
572
fn next ( & mut self ) -> Option < char > {
572
573
self . 0 . next ( ) . map ( |c| {
573
574
if c == '\r' {
You can’t perform that action at this time.
0 commit comments