aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/mod.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-06-20 20:47:48 +0000
committerBlaž Hrastnik2022-06-21 17:26:24 +0000
commit23b5b1e25aca1dbed87fef18cc72b16852ba40a8 (patch)
tree21534a9c7ed846a51732b8cba59321e8ffdb8dac /helix-term/src/ui/mod.rs
parent19dccade7c44619bfa414a711fe72a612e4ca358 (diff)
Remove a couple more unwraps
Diffstat (limited to 'helix-term/src/ui/mod.rs')
-rw-r--r--helix-term/src/ui/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs
index 76ddaf89..47a68a18 100644
--- a/helix-term/src/ui/mod.rs
+++ b/helix-term/src/ui/mod.rs
@@ -263,8 +263,7 @@ pub mod completers {
pub fn setting(_editor: &Editor, input: &str) -> Vec<Completion> {
static KEYS: Lazy<Vec<String>> = Lazy::new(|| {
- serde_json::to_value(Config::default())
- .unwrap()
+ serde_json::json!(Config::default())
.as_object()
.unwrap()
.keys()