mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Give TagName a From<&str>
This commit is contained in:
parent
aa5e1e6a27
commit
6af6006cdd
1 changed files with 6 additions and 0 deletions
|
@ -65,6 +65,12 @@ impl TagName {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<&str> for TagName {
|
||||
fn from(string: &str) -> Self {
|
||||
Self(string.into())
|
||||
}
|
||||
}
|
||||
|
||||
impl ModuleName {
|
||||
// NOTE: After adding one of these, go to `impl ModuleId` and
|
||||
// add a corresponding ModuleId to there!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue