Skip to content

Commit

Permalink
Replace zip_next with zip
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirreke committed Apr 30, 2024
1 parent 9c0b057 commit 4f8f4f4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ encoding_rs = "0.8"
log = "0.4"
serde = "1.0"
quick-xml = { version = "0.31", features = ["encoding"] }
zip_next = { version = "1.0", default-features = false, features = ["deflate"] }
zip = { version = "1.0", default-features = false, features = ["deflate"] }
chrono = { version = "0.4", features = [
"serde",
], optional = true, default-features = false }
Expand Down
8 changes: 4 additions & 4 deletions src/ods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ use quick_xml::events::attributes::Attributes;
use quick_xml::events::Event;
use quick_xml::name::QName;
use quick_xml::Reader as XmlReader;
use zip_next::read::{ZipArchive, ZipFile};
use zip_next::result::ZipError;
use zip::read::{ZipArchive, ZipFile};
use zip::result::ZipError;

use crate::vba::VbaProject;
use crate::{Data, DataType, Metadata, Range, Reader, Sheet, SheetType, SheetVisible};
Expand All @@ -29,7 +29,7 @@ pub enum OdsError {
/// Io error
Io(std::io::Error),
/// Zip error
Zip(zip_next::result::ZipError),
Zip(zip::result::ZipError),
/// Xml error
Xml(quick_xml::Error),
/// Xml attribute error
Expand Down Expand Up @@ -63,7 +63,7 @@ pub enum OdsError {
}

from_err!(std::io::Error, OdsError, Io);
from_err!(zip_next::result::ZipError, OdsError, Zip);
from_err!(zip::result::ZipError, OdsError, Zip);
from_err!(quick_xml::Error, OdsError, Xml);
from_err!(std::string::ParseError, OdsError, Parse);
from_err!(std::num::ParseFloatError, OdsError, ParseFloat);
Expand Down
8 changes: 4 additions & 4 deletions src/xlsb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ use quick_xml::events::attributes::Attribute;
use quick_xml::events::Event;
use quick_xml::name::QName;
use quick_xml::Reader as XmlReader;
use zip_next::read::{ZipArchive, ZipFile};
use zip_next::result::ZipError;
use zip::read::{ZipArchive, ZipFile};
use zip::result::ZipError;

use crate::datatype::DataRef;
use crate::formats::{builtin_format_by_code, detect_custom_number_format, CellFormat};
Expand All @@ -29,7 +29,7 @@ pub enum XlsbError {
/// Io error
Io(std::io::Error),
/// Zip error
Zip(zip_next::result::ZipError),
Zip(zip::result::ZipError),
/// Xml error
Xml(quick_xml::Error),
/// Xml attribute error
Expand Down Expand Up @@ -82,7 +82,7 @@ pub enum XlsbError {
}

from_err!(std::io::Error, XlsbError, Io);
from_err!(zip_next::result::ZipError, XlsbError, Zip);
from_err!(zip::result::ZipError, XlsbError, Zip);
from_err!(quick_xml::Error, XlsbError, Xml);

impl std::fmt::Display for XlsbError {
Expand Down
8 changes: 4 additions & 4 deletions src/xlsx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ use quick_xml::events::attributes::{Attribute, Attributes};
use quick_xml::events::Event;
use quick_xml::name::QName;
use quick_xml::Reader as XmlReader;
use zip_next::read::{ZipArchive, ZipFile};
use zip_next::result::ZipError;
use zip::read::{ZipArchive, ZipFile};
use zip::result::ZipError;

use crate::datatype::DataRef;
use crate::formats::{builtin_format_by_id, detect_custom_number_format, CellFormat};
Expand All @@ -37,7 +37,7 @@ pub enum XlsxError {
/// Io error
Io(std::io::Error),
/// Zip error
Zip(zip_next::result::ZipError),
Zip(zip::result::ZipError),
/// Vba error
Vba(crate::vba::VbaError),
/// Xml error
Expand Down Expand Up @@ -90,7 +90,7 @@ pub enum XlsxError {
}

from_err!(std::io::Error, XlsxError, Io);
from_err!(zip_next::result::ZipError, XlsxError, Zip);
from_err!(zip::result::ZipError, XlsxError, Zip);
from_err!(crate::vba::VbaError, XlsxError, Vba);
from_err!(quick_xml::Error, XlsxError, Xml);
from_err!(std::string::ParseError, XlsxError, Parse);
Expand Down

0 comments on commit 4f8f4f4

Please sign in to comment.