Skip to content

Commit

Permalink
chore: fix clippy issues
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Liu <sam@secondstate.io>
  • Loading branch information
apepkuss committed Sep 20, 2024
1 parent 810771f commit cbabc34
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ pub(crate) fn invalid_endpoint(msg: impl AsRef<str>) -> Response<Body> {

#[derive(Error, Clone, Debug, PartialEq, Eq)]
pub enum ServerError {
/// Error returned while parsing socket address failed
#[error("Failed to parse socket address: {0}")]
SocketAddr(String),
/// Generic error returned while performing an operation
#[error("{0}")]
Operation(String),
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use hyper::{
Body, Request, Response, Server,
};
use serde::{Deserialize, Serialize};
use std::{net::SocketAddr, path::PathBuf};
use std::path::PathBuf;
use tokio::net::TcpListener;

type Error = Box<dyn std::error::Error + Send + Sync + 'static>;
Expand Down

0 comments on commit cbabc34

Please sign in to comment.