We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ulid::Generator::new()
1 parent b7f33ce commit b39ecb9Copy full SHA for b39ecb9
1 file changed
src/generator.rs
@@ -23,7 +23,7 @@ impl Generator {
23
///
24
/// assert!(ulid1 < ulid2);
25
/// ```
26
- pub fn new() -> Generator {
+ pub const fn new() -> Generator {
27
Generator {
28
previous: Ulid::nil(),
29
}
0 commit comments