Refactor and add CacheUsage to query params

This commit is contained in:
Dominik Werder
2021-05-03 11:47:48 +02:00
parent a47ffc843d
commit c5b5986a28
7 changed files with 218 additions and 146 deletions

View File

@@ -2,6 +2,7 @@
Error handling and reporting.
*/
use http::uri::InvalidUri;
use nom::error::ErrorKind;
use serde::{Deserialize, Serialize, Serializer};
use std::fmt::Debug;
@@ -198,6 +199,12 @@ impl<T> From<async_channel::SendError<T>> for Error {
}
}
impl From<InvalidUri> for Error {
fn from(k: InvalidUri) -> Self {
Self::with_msg(k.to_string())
}
}
pub fn todoval<T>() -> T {
todo!("TODO todoval")
}