mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
change to using once_cell for lazy init
This commit is contained in:
@@ -15,13 +15,11 @@
|
||||
*/
|
||||
|
||||
use core::fmt;
|
||||
use lazy_static::lazy_static;
|
||||
use once_cell::sync::Lazy;
|
||||
|
||||
use crate::Exceptions;
|
||||
|
||||
lazy_static! {
|
||||
static ref VERSIONS: Vec<Version> = Version::buildVersions();
|
||||
}
|
||||
static VERSIONS: Lazy<Vec<Version>> = Lazy::new(|| Version::buildVersions());
|
||||
|
||||
pub type VersionRef = &'static Version;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user