File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -370,11 +370,11 @@ impl SourceMap {
370370 pub fn doctest_offset_line ( & self , file : & FileName , orig : usize ) -> usize {
371371 match file {
372372 FileName :: DocTest ( _, offset) => {
373- return if * offset >= 0 {
374- orig + * offset as usize
375- } else {
373+ if * offset < 0 {
376374 orig - ( -( * offset) ) as usize
377- } ;
375+ } else {
376+ orig + * offset as usize
377+ }
378378 }
379379 _ => orig,
380380 }
Original file line number Diff line number Diff line change @@ -234,9 +234,7 @@ pub fn load_css_paths(v: &[u8]) -> CssPath {
234234}
235235
236236pub fn get_differences ( against : & CssPath , other : & CssPath , v : & mut Vec < String > ) {
237- if against. name != other. name {
238- return ;
239- } else {
237+ if against. name == other. name {
240238 for child in & against. children {
241239 let mut found = false ;
242240 let mut found_working = false ;
You can’t perform that action at this time.
0 commit comments