Fix minor issues
This commit is contained in:
parent
cacd740bd9
commit
e9b09cd709
2 changed files with 4 additions and 4 deletions
|
@ -14,14 +14,14 @@ serde = "1.0"
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
serde_derive = "1.0"
|
serde_derive = "1.0"
|
||||||
|
|
||||||
simple_logger = "4.2"
|
simple_logger = "5.0"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
|
|
||||||
config = "0.13"
|
config = "0.14"
|
||||||
|
|
||||||
chrono = { version = "0.4", features = ["serde"] }
|
chrono = { version = "0.4", features = ["serde"] }
|
||||||
|
|
||||||
sqlx = { version = "0.7", features = ["sqlite", "runtime-tokio", "macros", "chrono"] }
|
sqlx = { version = "0.7", features = ["sqlite", "runtime-tokio", "macros"] }
|
||||||
libsqlite3-sys = { version = "*", features = ["bundled"] }
|
libsqlite3-sys = { version = "*", features = ["bundled"] }
|
||||||
uuid = { version = "1.8", features = ["v4"] }
|
uuid = { version = "1.8", features = ["v4"] }
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
|
|
|
@ -139,7 +139,7 @@ impl Serialize for EmgauwaError {
|
||||||
{
|
{
|
||||||
let mut s = serializer.serialize_struct("error", 2)?;
|
let mut s = serializer.serialize_struct("error", 2)?;
|
||||||
s.serialize_field("code", &self.get_code().as_u16())?;
|
s.serialize_field("code", &self.get_code().as_u16())?;
|
||||||
s.serialize_field("description", &String::from(self))?;
|
s.serialize_field("message", &String::from(self))?;
|
||||||
s.end()
|
s.end()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue