We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b7f33ce + b39ecb9 commit 482338aCopy full SHA for 482338a
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