Skip to content

Commit 482338a

Browse files
authored
Merge pull request #84 from emkw/patch-1
Make `ulid::Generator::new()` const
2 parents b7f33ce + b39ecb9 commit 482338a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/generator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impl Generator {
2323
///
2424
/// assert!(ulid1 < ulid2);
2525
/// ```
26-
pub fn new() -> Generator {
26+
pub const fn new() -> Generator {
2727
Generator {
2828
previous: Ulid::nil(),
2929
}

0 commit comments

Comments
 (0)