diff options
author | HampusM <hampus@hampusmat.com> | 2022-08-03 14:13:55 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-08-21 18:17:17 +0200 |
commit | b54dee1fb52f259de8b485d050d75c6956750b7f (patch) | |
tree | c2aa02de55da6c2d4c338982afee18ce42465160 /examples/factory | |
parent | c33cf02c9a6fffc6149fd7b59c63ad0d15d61432 (diff) |
feat!: prevent binding the same interface more than once
BREAKING CHANGE: The 'to' and 'to_factory' methods of BindingBuilder now return 'Result'
Diffstat (limited to 'examples/factory')
-rw-r--r-- | examples/factory/bootstrap.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/factory/bootstrap.rs b/examples/factory/bootstrap.rs index 1967c6a..a44ccfb 100644 --- a/examples/factory/bootstrap.rs +++ b/examples/factory/bootstrap.rs @@ -18,7 +18,8 @@ pub fn bootstrap() -> DIContainer TransientPtr::new(User::new(name, date_of_birth, password)); user - }); + }) + .unwrap(); di_container } |