mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
proc-macro-api: Fix warnings about clippy str_to_string
rule
This commit is contained in:
parent
5d1f2835af
commit
b89a4038c9
4 changed files with 6 additions and 6 deletions
|
@ -38,7 +38,7 @@ pub fn read_dylib_info(dylib_path: &AbsPath) -> io::Result<RustCInfo> {
|
|||
let version_part = items.next().ok_or_else(|| err!("no version string"))?;
|
||||
let mut version_parts = version_part.split('-');
|
||||
let version = version_parts.next().ok_or_else(|| err!("no version"))?;
|
||||
let channel = version_parts.next().unwrap_or_default().to_string();
|
||||
let channel = version_parts.next().unwrap_or_default().to_owned();
|
||||
|
||||
let commit = match items.next() {
|
||||
Some(commit) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue