fix: cleanup dependencies

This commit is contained in:
DecDuck
2025-09-14 09:27:49 +10:00
parent c1beef380e
commit ab219670dc
9 changed files with 67 additions and 856 deletions

View File

@ -9,11 +9,10 @@ chrono = "0.4.42"
dirs = "6.0.0"
log = "0.4.28"
native_model = { git = "https://github.com/Drop-OSS/native_model.git", version = "0.6.4", features = [
"rmp_serde_1_3",
"rmp_serde_1_3"
] }
rustbreak = "2.0.0"
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.143"
serde_with = "3.14.0"
url = "2.5.7"
whoami = "1.6.1"

View File

@ -39,7 +39,7 @@ impl<T: native_model::Model + Serialize + DeserializeOwned> DeSerializer<T>
fn deserialize<R: std::io::Read>(&self, mut s: R) -> rustbreak::error::DeSerResult<T> {
let mut buf = Vec::new();
s.read_to_end(&mut buf)
.map_err(|e| rustbreak::error::DeSerError::Other(e.into()))?;
.map_err(|e| rustbreak::error::DeSerError::Internal(e.to_string()))?;
let (val, _version) = native_model::decode(buf)
.map_err(|e| DeSerError::Internal(e.to_string()))?;
Ok(val)