aboutsummaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs
index ffb57fe..d3ed5d1 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -1,4 +1,4 @@
-use std::{io, net, time};
+use std::{io, net, num, time};
use tokio::sync::watch;
@@ -33,6 +33,8 @@ pub enum Error {
Io(#[from] io::Error),
#[error("system time monotonicity error: {0}")]
SystemTime(#[from] time::SystemTimeError),
+ #[error("can't convert between integer sizes: {0}")]
+ TryFromInt(#[from] num::TryFromIntError),
#[error("can't receive from tokio watch channel: {0}")]
WatchRecv(#[from] watch::error::RecvError),