summaryrefslogtreecommitdiff
path: root/helix-view/src/theme.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src/theme.rs')
-rw-r--r--helix-view/src/theme.rs4
1 files changed, 2 insertions, 2 deletions
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 })
}
}