Skip to content

Commit 1375554

Browse files
committed
feat(env): remove comptime env vars
1 parent 07d3301 commit 1375554

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/macros.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,7 @@ pub(crate) use dbg;
9797
#[allow(unused_macros)]
9898
macro_rules! hermit_var {
9999
($name:expr) => {
100-
match $crate::env::var($name) {
101-
::core::option::Option::Some(val) => {
102-
::core::option::Option::Some(::alloc::borrow::Cow::from(val))
103-
}
104-
::core::option::Option::None => {
105-
::core::option_env!($name).map(::alloc::borrow::Cow::Borrowed)
106-
}
107-
}
100+
$crate::env::var($name)
108101
};
109102
}
110103

0 commit comments

Comments
 (0)