diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 0000000..779c3d6 --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1,5 @@ +max_width = 80 +format_strings = true +imports_indent = "Block" +reorder_imports = true +use_try_shorthand = true diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cdc848..4c16c7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.3.1] - 2022-04-12 +### 🐛 Fixed +- Fixed a bug in decompress, where the high part of the offset was not shifted by the correct number + of bits, resulting in the wrong part of the data being copied +- Fixed a bug in compress, where it used an encoding even if the offset value was too large, + resulting in the high bits being cut off + ## [0.3.0] - 2020-05-31 ### ℹ Changed - Switched error handling library from `failure` to `thiserror` diff --git a/Cargo.toml b/Cargo.toml index 9b99a81..b52f21c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "quicklz" -version = "0.3.0" +version = "0.3.1" authors = ["Flakebi "] description = """ QuickLZ is a fast compression algorithm. @@ -13,7 +13,6 @@ categories = ["compression"] license = "MIT/Apache-2.0" include = [ "src/*", - "Format.md", "README.md", "Cargo.toml" ] diff --git a/rustfmt.toml b/rustfmt.toml deleted file mode 100644 index 3d64421..0000000 --- a/rustfmt.toml +++ /dev/null @@ -1,11 +0,0 @@ -max_width = 80 -format_strings = true -reorder_imported_names = true -imports_indent = "Block" -where_pred_indent = "Block" -reorder_imports = true -reorder_imports_in_group = true -use_try_shorthand = true - -# For tests -array_horizontal_layout_threshold = 20