diff options
author | HampusM <hampus@hampusmat.com> | 2022-08-28 13:01:22 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-08-28 13:01:22 +0200 |
commit | dd6ae0c8643f08114469ccff66615b45ccf5e13e (patch) | |
tree | 23aba710603e49896ef0e0d20b94d07052de377c /examples/unbound/bootstrap.rs | |
parent | ed2d73ed81da2f6b6784796a1751335c4fa46816 (diff) |
docs: use anyhow in the unbound example
Diffstat (limited to 'examples/unbound/bootstrap.rs')
-rw-r--r-- | examples/unbound/bootstrap.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/unbound/bootstrap.rs b/examples/unbound/bootstrap.rs index f59bc83..30366a6 100644 --- a/examples/unbound/bootstrap.rs +++ b/examples/unbound/bootstrap.rs @@ -1,5 +1,4 @@ -use std::error::Error; - +use anyhow::Result; use syrette::DIContainer; // Concrete implementations @@ -12,7 +11,7 @@ use crate::interfaces::animal_store::IAnimalStore; use crate::interfaces::dog::IDog; use crate::interfaces::human::IHuman; -pub fn bootstrap() -> Result<DIContainer, Box<dyn Error>> +pub fn bootstrap() -> Result<DIContainer> { let mut di_container: DIContainer = DIContainer::new(); |