Update dependencies

This commit is contained in:
Bilal Elmoussaoui 2024-04-27 22:41:51 +02:00
parent 04078b81e8
commit 17f2b915c2
5 changed files with 390 additions and 361 deletions

740
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -49,4 +49,4 @@ url = "2.2"
uuid = {version = "1.0", features = ["v4"]}
zbar-rust = "0.0"
zeroize = {version = "1", features = ["zeroize_derive"]}
zip = { version = "0.6.6", features = ["aes-crypto"] }
zip = { version = "2.1", features = ["aes-crypto"] }

View File

@ -8,7 +8,7 @@ version = "0.1.0"
data-encoding = "2.3"
image = {version = "0.25", features = ["ico", "png"], default-features = false}
percent-encoding = "2.1"
quick-xml = "0.31"
quick-xml = "0.33"
reqwest = "0.12"
svg_metadata = "0.5"
tokio = {version = "1.0", default-features = false, features = ["rt-multi-thread", "fs", "io-util", "macros"]}

View File

@ -43,8 +43,9 @@ impl Scrapper {
fn from_string(body: String, base_url: Option<&Url>) -> Result<Self, Error> {
let mut reader = quick_xml::Reader::from_str(&body);
reader.check_end_names(false);
reader.trim_markup_names_in_closing_tags(true);
let config = reader.config_mut();
config.check_end_names = false;
config.trim_markup_names_in_closing_tags = true;
let mut icons = Self::from_reader(&mut reader, base_url);
if let Some(base) = base_url {

View File

@ -117,7 +117,7 @@ impl Restorable for RaivoOTP {
Some(k) => k.as_bytes(),
};
let mut archive = ZipArchive::new(Cursor::new(from))?;
let file = archive.by_name_decrypt("raivo-otp-export.json", password)??;
let file = archive.by_name_decrypt("raivo-otp-export.json", password)?;
let items = serde_json::from_reader(file)?;
Ok(items)
}