Skip to content

Commit

Permalink
Rewrite to avoid failure path
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Sep 30, 2024
1 parent d679710 commit 674c0b4
Show file tree
Hide file tree
Showing 2 changed files with 190 additions and 151 deletions.
4 changes: 4 additions & 0 deletions components/datetime/src/pattern/runtime/pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ impl<'data> Pattern<'data> {
metadata: self.metadata,
}
}

pub fn as_ref(&self) -> Pattern<'_> {
self.as_borrowed().as_pattern()
}
}

impl PatternULE {
Expand Down
Loading

0 comments on commit 674c0b4

Please sign in to comment.