aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_db/src/input.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-01 09:03:07 +0100
committerAleksey Kladov <[email protected]>2020-07-01 09:03:07 +0100
commit80386ca5be78d8ea65483df3edeec1a89b09a5a3 (patch)
tree6e58b419e0d877c4ab9f784ab85e6ca564c1cf04 /crates/ra_db/src/input.rs
parent307c6fec618d5e509c754362687253ef44bb5f3f (diff)
Use Strings for display names
Diffstat (limited to 'crates/ra_db/src/input.rs')
-rw-r--r--crates/ra_db/src/input.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_db/src/input.rs b/crates/ra_db/src/input.rs
index a8cc588f9..445a1ee48 100644
--- a/crates/ra_db/src/input.rs
+++ b/crates/ra_db/src/input.rs
@@ -67,7 +67,7 @@ pub struct CrateGraph {
67#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] 67#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
68pub struct CrateId(pub u32); 68pub struct CrateId(pub u32);
69 69
70#[derive(Debug, Clone, PartialEq, Eq)] 70#[derive(Debug, Clone, PartialEq, Eq, Hash)]
71pub struct CrateName(SmolStr); 71pub struct CrateName(SmolStr);
72 72
73impl CrateName { 73impl CrateName {
@@ -124,7 +124,7 @@ pub struct CrateData {
124 /// The name to display to the end user. 124 /// The name to display to the end user.
125 /// This actual crate name can be different in a particular dependent crate 125 /// This actual crate name can be different in a particular dependent crate
126 /// or may even be missing for some cases, such as a dummy crate for the code snippet. 126 /// or may even be missing for some cases, such as a dummy crate for the code snippet.
127 pub display_name: Option<CrateName>, 127 pub display_name: Option<String>,
128 pub cfg_options: CfgOptions, 128 pub cfg_options: CfgOptions,
129 pub env: Env, 129 pub env: Env,
130 pub dependencies: Vec<Dependency>, 130 pub dependencies: Vec<Dependency>,
@@ -153,7 +153,7 @@ impl CrateGraph {
153 &mut self, 153 &mut self,
154 file_id: FileId, 154 file_id: FileId,
155 edition: Edition, 155 edition: Edition,
156 display_name: Option<CrateName>, 156 display_name: Option<String>,
157 cfg_options: CfgOptions, 157 cfg_options: CfgOptions,
158 env: Env, 158 env: Env,
159 proc_macro: Vec<(SmolStr, Arc<dyn ra_tt::TokenExpander>)>, 159 proc_macro: Vec<(SmolStr, Arc<dyn ra_tt::TokenExpander>)>,