Skip to content

Commit

Permalink
refactor: use static vec instead of lazy cell (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen authored May 29, 2024
1 parent 5c36450 commit 570a2e3
Show file tree
Hide file tree
Showing 6 changed files with 728 additions and 741 deletions.
2 changes: 1 addition & 1 deletion src/data/electron.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub struct ElectronVersion {
}

impl ElectronVersion {
pub fn new(major: u16, minor: u16) -> Self {
pub const fn new(major: u16, minor: u16) -> Self {
Self { major, minor }
}

Expand Down
Loading

0 comments on commit 570a2e3

Please sign in to comment.