Add scan endpoints
This commit is contained in:
@@ -10,6 +10,7 @@ use std::net::AddrParseError;
|
||||
use std::num::{ParseFloatError, ParseIntError};
|
||||
use std::string::FromUtf8Error;
|
||||
use tokio::task::JoinError;
|
||||
use std::sync::PoisonError;
|
||||
|
||||
/**
|
||||
The common error type for this application.
|
||||
@@ -237,6 +238,12 @@ impl From<regex::Error> for Error {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> From<PoisonError<T>> for Error {
|
||||
fn from(_: PoisonError<T>) -> Self {
|
||||
Self::with_msg("PoisonError")
|
||||
}
|
||||
}
|
||||
|
||||
pub fn todo() {
|
||||
todo!("TODO");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user