aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/completion/complete_record_literal.rs
diff options
context:
space:
mode:
authorMartin Asquino <[email protected]>2019-11-02 22:33:34 +0000
committerMartin Asquino <[email protected]>2019-11-02 22:33:34 +0000
commitccf8817d181ab9430a00c38d96b481a07af701bb (patch)
tree3ebe6c1e70f859eff504f3081c057060e04c2c5d /crates/ra_ide_api/src/completion/complete_record_literal.rs
parentdc3848a6a3e659004ba4f2160503be28ea0f9051 (diff)
Use `bool` instead of `Option<bool>` and print it's value only when `true`
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_record_literal.rs')
-rw-r--r--crates/ra_ide_api/src/completion/complete_record_literal.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_record_literal.rs b/crates/ra_ide_api/src/completion/complete_record_literal.rs
index 33bea411f..0295b8101 100644
--- a/crates/ra_ide_api/src/completion/complete_record_literal.rs
+++ b/crates/ra_ide_api/src/completion/complete_record_literal.rs
@@ -78,7 +78,6 @@ mod tests {
78 ⋮ insert: "the_field", 78 ⋮ insert: "the_field",
79 ⋮ kind: Field, 79 ⋮ kind: Field,
80 ⋮ detail: "u32", 80 ⋮ detail: "u32",
81 ⋮ deprecated: false,
82 ⋮ }, 81 ⋮ },
83 ⋮] 82 ⋮]
84 "###); 83 "###);
@@ -105,7 +104,6 @@ mod tests {
105 ⋮ insert: "a", 104 ⋮ insert: "a",
106 ⋮ kind: Field, 105 ⋮ kind: Field,
107 ⋮ detail: "u32", 106 ⋮ detail: "u32",
108 ⋮ deprecated: false,
109 ⋮ }, 107 ⋮ },
110 ⋮] 108 ⋮]
111 "###); 109 "###);
@@ -132,7 +130,6 @@ mod tests {
132 ⋮ insert: "b", 130 ⋮ insert: "b",
133 ⋮ kind: Field, 131 ⋮ kind: Field,
134 ⋮ detail: "u32", 132 ⋮ detail: "u32",
135 ⋮ deprecated: false,
136 ⋮ }, 133 ⋮ },
137 ⋮] 134 ⋮]
138 "###); 135 "###);
@@ -158,7 +155,6 @@ mod tests {
158 ⋮ insert: "a", 155 ⋮ insert: "a",
159 ⋮ kind: Field, 156 ⋮ kind: Field,
160 ⋮ detail: "u32", 157 ⋮ detail: "u32",
161 ⋮ deprecated: false,
162 ⋮ }, 158 ⋮ },
163 ⋮] 159 ⋮]
164 "###); 160 "###);