mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
use in Lowercase
This commit is contained in:
parent
9361f45610
commit
bd35770e9a
1 changed files with 3 additions and 3 deletions
|
@ -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<String> for Uppercase {
|
|||
|
||||
impl Lowercase {
|
||||
pub fn as_str(&self) -> &str {
|
||||
&*self.0
|
||||
self.0.as_str()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -199,7 +199,7 @@ impl<'a> From<String> for Lowercase {
|
|||
|
||||
impl From<Lowercase> for InlinableString {
|
||||
fn from(lowercase: Lowercase) -> Self {
|
||||
lowercase.0
|
||||
lowercase.0.as_str().into()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue