File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ homepage = "https://github.com/init4tech/bin-base"
13
13
repository = " https://github.com/init4tech/bin-base"
14
14
15
15
[dependencies ]
16
- init4-from-env-derive = { path = " ./from-env-derive " }
16
+ init4-from-env-derive = " 0.1.0 "
17
17
18
18
# Tracing
19
19
tracing = " 0.1.40"
Original file line number Diff line number Diff line change @@ -304,14 +304,17 @@ pub trait FromEnv: core::fmt::Debug + Sized + 'static {
304
304
/// impl.
305
305
///
306
306
/// ```
307
- /// # use init4_bin_base::utils::from_env::FromEnvVar;
307
+ /// # use init4_bin_base::utils::from_env::{FromEnvVar, FromEnvErr};
308
+ /// # use std::str::FromStr;
309
+ /// # #[derive(Debug)]
308
310
/// # pub struct MyCoolType;
309
311
/// # impl std::str::FromStr for MyCoolType {
310
- /// # type Err;
312
+ /// # type Err = std::convert::Infallible ;
311
313
/// # fn from_str(s: &str) -> Result<Self, Self::Err> {
312
314
/// # Ok(MyCoolType)
313
315
/// # }
314
316
/// # }
317
+ ///
315
318
/// // We can re-use the `FromStr` implementation for our `FromEnvVar` impl.
316
319
/// impl FromEnvVar for MyCoolType {
317
320
/// type Error = <MyCoolType as FromStr>::Err;
You can’t perform that action at this time.
0 commit comments