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 {
549549pub fn lldb_version_to_int ( version_string : & str ) -> isize {
550550 let error_string = format ! ( "Encountered LLDB version string with unexpected format: {}" ,
551551 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) ;
555553}
556554
557555fn 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> {
598598 Some ( idx) => if line. as_bytes ( ) [ idx] == b'.' {
599599 let patch = & line[ idx + 1 ..] ;
600600
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 ( ) ) ;
602603 let patch = & patch[ ..patch_len] ;
603604 let patch = if patch_len > 3 || patch_len == 0 { None } else { Some ( patch) } ;
604605
You can’t perform that action at this time.
0 commit comments