Skip to content

Commit 239730d

Browse files
authored
fix: lint issue by removing the unused struct (#133)
1 parent 0d58021 commit 239730d

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/error.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
1-
use rocket::{
2-
http::Status,
3-
response::Responder,
4-
serde::{json::Json, Serialize},
5-
Request,
6-
};
1+
use rocket::{http::Status, response::Responder, serde::json::Json, Request};
72
use thiserror::Error;
83

94
/// A wrapper for API responses that can return errors.
105
pub type ApiResult<T> = Result<Json<T>, ApiError>;
116

12-
/// An empty response.
13-
#[derive(Serialize)]
14-
pub struct EmptyResponse;
15-
167
#[derive(Error, Debug)]
178
pub enum ApiError {
189
#[error("Filesystem error: {0}")]

0 commit comments

Comments
 (0)