aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-10-27 08:30:41 -0400
committerJesse Luehrs <doy@tozt.net>2019-10-27 08:30:41 -0400
commitf900d0952cb94c88b33f85e9885ae00d6e56cdb5 (patch)
tree1172b36fd076755ad5a381a51fffa324ad2a7abb /src/error.rs
parent649450762eff2d71371e176534fbe64752a3284e (diff)
downloadttyrec-f900d0952cb94c88b33f85e9885ae00d6e56cdb5.tar.gz
ttyrec-f900d0952cb94c88b33f85e9885ae00d6e56cdb5.zip
make tokio features optional
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index 975889b..c106d02 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -17,10 +17,12 @@ pub enum Error {
FrameTooLong { input: u64 },
/// failed to read from file
+ #[cfg(feature = "async")]
#[snafu(display("failed to read from file: {}", source))]
ReadFile { source: tokio::io::Error },
/// failed to write to file
+ #[cfg(feature = "async")]
#[snafu(display("failed to write to file: {}", source))]
WriteFile { source: tokio::io::Error },
}