reimplement Result

This commit is contained in:
Folkert 2022-02-23 17:52:13 +01:00
parent 410426f059
commit d1d7cfef44
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
7 changed files with 155 additions and 6 deletions

View file

@ -88,7 +88,7 @@ impl<'a> From<ExposedName<'a>> for &'a str {
}
impl<'a> ExposedName<'a> {
pub fn new(name: &'a str) -> Self {
pub const fn new(name: &'a str) -> Self {
ExposedName(name)
}