Skip to content

Commit 82b2872

Browse files
committed
macro
1 parent dd9f2a1 commit 82b2872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/locid/src/subtags/language.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub struct Language(TinyAsciiStr<{ *LANGUAGE_LENGTH.end() }>);
4444
const LANGUAGE_LENGTH: RangeInclusive<usize> = 2..=3;
4545
// TODO(#348): Change this to invoke a const function.
4646
// Safe because "und" is a valid language subtag
47-
const UND: Language = Language(unsafe { TinyAsciiStr::from_bytes_unchecked(*b"und") });
47+
const UND: Language = crate::language!("und");
4848

4949
impl Language {
5050
/// A constructor which takes a utf8 slice, parses it and

0 commit comments

Comments
 (0)