@@ -360,28 +360,26 @@ pub mod fus {
360
360
if let Some ( r#type) = self . r#type {
361
361
// Compare the type as well
362
362
if let Some ( other_type) = other. r#type {
363
- return self . major == other. major
363
+ self . major == other. major
364
364
&& self . minor == other. minor
365
365
&& self . sub == other. sub
366
- && r#type == other_type;
366
+ && r#type == other_type
367
367
} else {
368
- return false ;
368
+ false
369
369
}
370
370
} else {
371
371
// Do not compare the type
372
- return self . major == other. major
373
- && self . minor == other. minor
374
- && self . sub == other. sub ;
372
+ self . major == other. major && self . minor == other. minor && self . sub == other. sub
375
373
}
376
374
}
377
375
}
378
376
379
377
impl std:: fmt:: Display for Version {
380
378
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
381
379
if let Some ( r#type) = self . r#type {
382
- return write ! ( f, "{}.{}.{}.{}" , self . major, self . minor, self . sub, r#type) ;
380
+ write ! ( f, "{}.{}.{}.{}" , self . major, self . minor, self . sub, r#type)
383
381
} else {
384
- return write ! ( f, "{}.{}.{}" , self . major, self . minor, self . sub) ;
382
+ write ! ( f, "{}.{}.{}" , self . major, self . minor, self . sub)
385
383
}
386
384
}
387
385
}
0 commit comments