mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Cargo fmt
This commit is contained in:
parent
bc81d582c9
commit
853f047245
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue