-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dependencies and Refactor Code for zip Crate Breaking Changes (#…
…245) * chore: update compatible dependencies * chore: update zip, quick-xml und hashbrown dependencies - Upgraded dependencies: - `hashbrown` from 0.14.5 to 0.15.2 - `quick-xml` from 0.36.2 to 0.37.1 - `zip` from 1.1.4 to 2.2.1 Cells: replace `insert_unique_unchecked` with `insert` - Updated the insertion logic in `Cells` to use `HashMap::insert` instead of the custom `insert_unique_unchecked`. This change ensures better safety and aligns with standard practices. WriterManager: refactor to use mutable reference for `ZipWriter` - Modified `WriterManager` to hold a mutable reference (`&mut`) to `ZipWriter` instead of consuming it directly. - Adjusted the constructor and methods accordingly to reflect this change, improving flexibility and reducing unnecessary ownership transfers. - This change was necessary due to breaking changes in the `zip` crate Writer XLSX: fix `make_buffer` logic - Refactored `make_buffer` to create and pass a mutable reference of `ZipWriter` to `WriterManager`. - Simplified the logic for finalizing the archive by directly calling `arv.finish()` and returning the result. These changes improve code safety, flexibility, and maintain compatibility with updated dependencies. * refactor: remove `hashbrown` dependency The `hashbrown` crate was unnecessary because `std::collections::HashMap` is already the default implementation in the standard library, based on `hashbrown`. This change removes the `hashbrown` dependency and updates all imports to use `std::collections::HashMap` instead, reducing the dependency surface and aligning with standard conventions.
- Loading branch information
Showing
17 changed files
with
32 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use hashbrown::HashMap; | ||
use std::collections::HashMap; | ||
use structs::Row; | ||
use traits::AdjustmentValue; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters