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 {
370
370
pub fn doctest_offset_line ( & self , file : & FileName , orig : usize ) -> usize {
371
371
match file {
372
372
FileName :: DocTest ( _, offset) => {
373
- return if * offset >= 0 {
374
- orig + * offset as usize
375
- } else {
373
+ if * offset < 0 {
376
374
orig - ( -( * offset) ) as usize
377
- } ;
375
+ } else {
376
+ orig + * offset as usize
377
+ }
378
378
}
379
379
_ => orig,
380
380
}
Original file line number Diff line number Diff line change @@ -234,9 +234,7 @@ pub fn load_css_paths(v: &[u8]) -> CssPath {
234
234
}
235
235
236
236
pub 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 {
240
238
for child in & against. children {
241
239
let mut found = false ;
242
240
let mut found_working = false ;
You can’t perform that action at this time.
0 commit comments