File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -549,9 +549,7 @@ impl Config {
549
549
pub fn lldb_version_to_int ( version_string : & str ) -> isize {
550
550
let error_string = format ! ( "Encountered LLDB version string with unexpected format: {}" ,
551
551
version_string) ;
552
- let error_string = error_string;
553
- let major: isize = version_string. parse ( ) . expect ( & error_string) ;
554
- major
552
+ version_string. parse ( ) . expect ( & error_string) ;
555
553
}
556
554
557
555
fn expand_variables ( mut value : String , config : & Config ) -> String {
Original file line number Diff line number Diff line change @@ -598,7 +598,8 @@ fn extract_gdb_version(full_version_line: &str) -> Option<u32> {
598
598
Some ( idx) => if line. as_bytes ( ) [ idx] == b'.' {
599
599
let patch = & line[ idx + 1 ..] ;
600
600
601
- let patch_len = patch. find ( |c : char | !c. is_digit ( 10 ) ) . unwrap_or_else ( || patch. len ( ) ) ;
601
+ let patch_len = patch. find ( |c : char | !c. is_digit ( 10 ) )
602
+ . unwrap_or_else ( || patch. len ( ) ) ;
602
603
let patch = & patch[ ..patch_len] ;
603
604
let patch = if patch_len > 3 || patch_len == 0 { None } else { Some ( patch) } ;
604
605
You can’t perform that action at this time.
0 commit comments