aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_project_model/src
diff options
context:
space:
mode:
authorSteffen Lyngbaek <[email protected]>2020-03-10 18:21:56 +0000
committerSteffen Lyngbaek <[email protected]>2020-03-10 21:36:01 +0000
commitcfb48df149bfa8a15b113b1a252598457a4ea392 (patch)
tree8672e75715e2def7963e6250700125b17f233009 /crates/ra_project_model/src
parente98aff109a1c4bda6a05f16981898425c302aa0c (diff)
Address Issues from Github
- Updated naming of config - Define struct in ra_ide and use remote derive in rust-analyzer/config - Make inlayConfig type more flexible to support more future types - Remove constructor only used in tests
Diffstat (limited to 'crates/ra_project_model/src')
-rw-r--r--crates/ra_project_model/src/lib.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/crates/ra_project_model/src/lib.rs b/crates/ra_project_model/src/lib.rs
index a5012c0ef..036c8719f 100644
--- a/crates/ra_project_model/src/lib.rs
+++ b/crates/ra_project_model/src/lib.rs
@@ -41,12 +41,6 @@ pub struct InlayHintOptions {
41 pub max_length: Option<usize>, 41 pub max_length: Option<usize>,
42} 42}
43 43
44impl InlayHintOptions {
45 pub fn new(max_length: Option<usize>) -> Self {
46 Self { display_type: InlayHintDisplayType::Full, max_length }
47 }
48}
49
50impl Default for InlayHintOptions { 44impl Default for InlayHintOptions {
51 fn default() -> Self { 45 fn default() -> Self {
52 Self { display_type: InlayHintDisplayType::Full, max_length: None } 46 Self { display_type: InlayHintDisplayType::Full, max_length: None }