Skip to content

Commit 4b927b3

Browse files
authored
Merge branch 'master' into typos
2 parents 07f4a1f + 06d9613 commit 4b927b3

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sway-playground"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55

66
[dependencies]

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)