mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
Replace TagName::into_string with as_string
This commit is contained in:
parent
c5f5bb1bef
commit
181cf10d2c
3 changed files with 7 additions and 7 deletions
|
@ -40,7 +40,7 @@ pub enum TagName {
|
|||
}
|
||||
|
||||
impl TagName {
|
||||
pub fn into_string(self, interns: &Interns, home: ModuleId) -> InlinableString {
|
||||
pub fn as_string(&self, interns: &Interns, home: ModuleId) -> InlinableString {
|
||||
match self {
|
||||
TagName::Global(uppercase) => uppercase.as_inline_str().clone(),
|
||||
TagName::Private(symbol) => symbol.fully_qualified(interns, home),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue