aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/editor.rs2
-rw-r--r--helix-view/src/theme.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 44014e83..83208f78 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -30,7 +30,7 @@ impl Editor {
let toml = config
.as_deref()
.unwrap_or(include_bytes!("../../theme.toml"));
- let theme: Theme = toml::from_slice(&toml).expect("failed to parse theme.toml");
+ let theme: Theme = toml::from_slice(toml).expect("failed to parse theme.toml");
let language_servers = helix_lsp::Registry::new();
diff --git a/helix-view/src/theme.rs b/helix-view/src/theme.rs
index ec7c746a..8b695898 100644
--- a/helix-view/src/theme.rs
+++ b/helix-view/src/theme.rs
@@ -92,7 +92,7 @@ pub struct Theme {
}
impl<'de> Deserialize<'de> for Theme {
- fn deserialize<D>(deserializer: D) -> Result<Theme, D::Error>
+ fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where
D: Deserializer<'de>,
{
@@ -110,7 +110,7 @@ impl<'de> Deserialize<'de> for Theme {
}
let scopes = styles.keys().map(ToString::to_string).collect();
- Ok(Theme { scopes, styles })
+ Ok(Self { scopes, styles })
}
}