-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove lazy_static where const functions are available (#3526)
We don't need to use `lazy_static` where const functions are available. Fixes https://dfinity.atlassian.net/browse/SDK-761
- Loading branch information
1 parent
023d127
commit 2300920
Showing
2 changed files
with
4 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
use lazy_static::lazy_static; | ||
lazy_static! { | ||
static ref REPLICA_REV_STR: String = env!("DFX_ASSET_REPLICA_REV").to_string(); | ||
} | ||
const REPLICA_REV_STR: &str = env!("DFX_ASSET_REPLICA_REV"); | ||
|
||
pub fn replica_rev() -> &'static str { | ||
&REPLICA_REV_STR | ||
REPLICA_REV_STR | ||
} |