diff options
Diffstat (limited to 'src/diplonat.rs')
-rw-r--r-- | src/diplonat.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/diplonat.rs b/src/diplonat.rs index 44f6ac5..089a5c7 100644 --- a/src/diplonat.rs +++ b/src/diplonat.rs @@ -1,4 +1,5 @@ use igd::Gateway; +use anyhow::Result; use crate::*; @@ -7,7 +8,7 @@ pub struct DiplonatContext { //pub gateway: igd::Gateway } -pub fn setup() -> Result<DiplonatContext, String> { +pub fn setup() -> Result<DiplonatContext> { return Ok(DiplonatContext { config: config::load_env()?, //gateway: search_gateway(Default::default()).await |