mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Remove SmolStr from project model
This commit is contained in:
parent
ddbf43b630
commit
12c70871cc
5 changed files with 7 additions and 19 deletions
|
@ -3,8 +3,6 @@ use std::{
|
|||
process::Command,
|
||||
};
|
||||
|
||||
use smol_str::SmolStr;
|
||||
|
||||
use ra_arena::{Arena, RawId, impl_arena_id};
|
||||
|
||||
use crate::Result;
|
||||
|
@ -20,7 +18,7 @@ impl_arena_id!(SysrootCrate);
|
|||
|
||||
#[derive(Debug, Clone)]
|
||||
struct SysrootCrateData {
|
||||
name: SmolStr,
|
||||
name: String,
|
||||
root: PathBuf,
|
||||
deps: Vec<SysrootCrate>,
|
||||
}
|
||||
|
@ -81,7 +79,7 @@ impl Sysroot {
|
|||
}
|
||||
|
||||
impl SysrootCrate {
|
||||
pub fn name(self, sysroot: &Sysroot) -> &SmolStr {
|
||||
pub fn name(self, sysroot: &Sysroot) -> &str {
|
||||
&sysroot.crates[self].name
|
||||
}
|
||||
pub fn root(self, sysroot: &Sysroot) -> &Path {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue