We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f41a19 commit 39d8820Copy full SHA for 39d8820
src/utils/from_env.rs
@@ -379,6 +379,9 @@ pub trait FromEnvVar: core::fmt::Debug + Sized + 'static {
379
/// Load the primitive from the environment at the given variable. If the
380
/// variable is unset or empty, return the value generated by
381
/// [`Default::default`].
382
+ ///
383
+ /// This function will return an error if the environment variable is set
384
+ /// but cannot be parsed.
385
fn from_env_var_or_default(env_var: &str) -> Result<Self, FromEnvErr<Self::Error>>
386
where
387
Self: Default,
0 commit comments