Clean up left todo items

This commit is contained in:
Dominik Werder
2021-06-10 10:38:51 +02:00
parent da50d772a0
commit 9c1cf3bba3
14 changed files with 288 additions and 143 deletions

View File

@@ -4,13 +4,13 @@ Error handling and reporting.
use http::uri::InvalidUri;
use nom::error::ErrorKind;
use serde::{Deserialize, Serialize, Serializer};
use serde::{Deserialize, Serialize};
use std::fmt::Debug;
use std::net::AddrParseError;
use std::num::{ParseFloatError, ParseIntError};
use std::string::FromUtf8Error;
use tokio::task::JoinError;
use std::sync::PoisonError;
use tokio::task::JoinError;
/**
The common error type for this application.
@@ -23,14 +23,6 @@ pub struct Error {
trace_str: Option<String>,
}
#[allow(dead_code)]
fn ser_trace<S>(_: &Option<backtrace::Backtrace>, _: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
{
todoval()
}
impl Error {
pub fn with_msg<S: Into<String>>(s: S) -> Self {
Self {