Cargo fmt
This commit is contained in:
parent
bc81d582c9
commit
853f047245
@ -126,7 +126,7 @@ pub fn read_version(dylib_path: &AbsPath) -> io::Result<String> {
|
|||||||
let len_bytes = &dot_rustc[8..12];
|
let len_bytes = &dot_rustc[8..12];
|
||||||
let data_len = u32::from_be_bytes(len_bytes.try_into().unwrap()) as usize;
|
let data_len = u32::from_be_bytes(len_bytes.try_into().unwrap()) as usize;
|
||||||
&dot_rustc[12..data_len + 12]
|
&dot_rustc[12..data_len + 12]
|
||||||
},
|
}
|
||||||
_ => {
|
_ => {
|
||||||
return Err(io::Error::new(
|
return Err(io::Error::new(
|
||||||
io::ErrorKind::InvalidData,
|
io::ErrorKind::InvalidData,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user