aboutsummaryrefslogtreecommitdiff
path: root/examples/unbound/main.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-08-28 13:01:22 +0200
committerHampusM <hampus@hampusmat.com>2022-08-28 13:01:22 +0200
commitdd6ae0c8643f08114469ccff66615b45ccf5e13e (patch)
tree23aba710603e49896ef0e0d20b94d07052de377c /examples/unbound/main.rs
parented2d73ed81da2f6b6784796a1751335c4fa46816 (diff)
docs: use anyhow in the unbound example
Diffstat (limited to 'examples/unbound/main.rs')
-rw-r--r--examples/unbound/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/unbound/main.rs b/examples/unbound/main.rs
index e9a8feb..f8dddbb 100644
--- a/examples/unbound/main.rs
+++ b/examples/unbound/main.rs
@@ -2,7 +2,7 @@
#![deny(clippy::pedantic)]
#![allow(clippy::module_name_repetitions)]
-use std::error::Error;
+use anyhow::Result;
mod animal_store;
mod animals;
@@ -13,7 +13,7 @@ use bootstrap::bootstrap;
use interfaces::dog::IDog;
use interfaces::human::IHuman;
-fn main() -> Result<(), Box<dyn Error>>
+fn main() -> Result<()>
{
println!("Hello, world!");