From bd35770e9a45dbd98df0b2ccf5afd2b6d48c25d4 Mon Sep 17 00:00:00 2001 From: Folkert Date: Tue, 3 Aug 2021 19:30:29 +0200 Subject: [PATCH] use in Lowercase --- compiler/module/src/ident.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/module/src/ident.rs b/compiler/module/src/ident.rs index ba8b20c93d..20f16c3f91 100644 --- a/compiler/module/src/ident.rs +++ b/compiler/module/src/ident.rs @@ -22,7 +22,7 @@ pub struct ModuleName(InlinableString); /// An uncapitalized identifier, such as a field name or local variable #[derive(Clone, PartialEq, Eq, Hash, PartialOrd, Ord)] -pub struct Lowercase(InlinableString); +pub struct Lowercase(roc_ident::IdentStr); /// A capitalized identifier, such as a tag name or module name #[derive(Clone, PartialEq, Eq, Hash, PartialOrd, Ord)] @@ -181,7 +181,7 @@ impl<'a> From for Uppercase { impl Lowercase { pub fn as_str(&self) -> &str { - &*self.0 + self.0.as_str() } } @@ -199,7 +199,7 @@ impl<'a> From for Lowercase { impl From for InlinableString { fn from(lowercase: Lowercase) -> Self { - lowercase.0 + lowercase.0.as_str().into() } }