summaryrefslogtreecommitdiffhomepage
path: root/talpid-core/src
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2019-04-05 15:20:22 +0200
committerLinus Färnstrand <linus@mullvad.net>2019-04-05 16:28:05 +0200
commit26df46b88d78d2731d2cf5d53d698496fadb2f3e (patch)
treeff7f7d88857d07b256274b5215c62d2c8fcdec8c /talpid-core/src
parent7cacecc0056607f4872377137ba00965348179c1 (diff)
downloadmullvadvpn-26df46b88d78d2731d2cf5d53d698496fadb2f3e.tar.xz
mullvadvpn-26df46b88d78d2731d2cf5d53d698496fadb2f3e.zip
Remove error-chain dep from talpid-core
Diffstat (limited to 'talpid-core/src')
-rw-r--r--talpid-core/src/firewall/linux.rs2
-rw-r--r--talpid-core/src/lib.rs3
2 files changed, 1 insertions, 4 deletions
diff --git a/talpid-core/src/firewall/linux.rs b/talpid-core/src/firewall/linux.rs
index 5c8d9e777e..540bdff1ee 100644
--- a/talpid-core/src/firewall/linux.rs
+++ b/talpid-core/src/firewall/linux.rs
@@ -164,7 +164,7 @@ impl Firewall {
"Expected '{}' netfilter table to be set, but it is not",
expected_table.to_string_lossy()
);
- bail!(Error::NetfilterTableNotSetError)
+ return Err(Error::NetfilterTableNotSetError);
}
}
Ok(())
diff --git a/talpid-core/src/lib.rs b/talpid-core/src/lib.rs
index 1499557439..3b2bac9529 100644
--- a/talpid-core/src/lib.rs
+++ b/talpid-core/src/lib.rs
@@ -11,9 +11,6 @@
//! GNU General Public License as published by the Free Software Foundation, either version 3 of
//! the License, or (at your option) any later version.
-#[macro_use]
-extern crate error_chain;
-
/// Misc FFI utilities.
#[cfg(windows)]
#[macro_use]