Fix minor issues

This commit is contained in:
Tobias Reisinger 2024-05-04 18:32:47 +02:00
parent cacd740bd9
commit e9b09cd709
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 4 additions and 4 deletions

View file

@ -14,14 +14,14 @@ serde = "1.0"
serde_json = "1.0"
serde_derive = "1.0"
simple_logger = "4.2"
simple_logger = "5.0"
log = "0.4"
config = "0.13"
config = "0.14"
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"] }
uuid = { version = "1.8", features = ["v4"] }
futures = "0.3"

View file

@ -139,7 +139,7 @@ impl Serialize for EmgauwaError {
{
let mut s = serializer.serialize_struct("error", 2)?;
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()
}
}