Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
features: [--no-default-features, --all-features]
steps:
- name: Checkout sources
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Install ${{ matrix.toolchain }} toolchain
run: |
Expand All @@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Install nightly toolchain
run: |
Expand All @@ -54,7 +54,7 @@ jobs:
features: [--no-default-features, --all-features]
steps:
- name: Checkout sources
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Install ${{ matrix.toolchain }} toolchain
run: |
Expand All @@ -73,7 +73,7 @@ jobs:
features: [--no-default-features, --all-features]
steps:
- name: Checkout sources
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Install ${{ matrix.toolchain }} toolchain
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- id: create-release
run: gh release create ${{ github.ref_name }} --title "${{ github.ref_name }}" --generate-notes
env:
Expand All @@ -23,7 +23,7 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: rust-lang/crates-io-auth-action@v1
id: auth
- run: cargo publish
Expand Down
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "README.md"
keywords = ["deflate", "gzip", "zlib"]
categories = ["compression", "no-std"]
license = "MIT"
edition = "2021"
edition = "2024"
include = [
"Cargo.toml",
"README.md",
Expand Down Expand Up @@ -37,4 +37,3 @@ exclude = ["flate_bench"]

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }

2 changes: 1 addition & 1 deletion flate_bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "flate_bench"
version = "0.1.0"
authors = ["Takeru Ohta <phjgt308@gmail.com>"]
edition = "2021"
edition = "2024"

[dependencies]
clap = { version = "4", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion libflate_lz77/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "libflate_lz77"
version = "2.2.0"
authors = ["Takeru Ohta <phjgt308@gmail.com>"]
edition = "2021"
edition = "2024"
description = "LZ77 encoder for libflate crate"
homepage = "https://github.com/sile/libflate"
repository = "https://github.com/sile/libflate"
Expand Down
2 changes: 1 addition & 1 deletion src/deflate/encode.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::symbol;
use super::BlockType;
use super::symbol;
use crate::bit;
use crate::finish::{Complete, Finish};
use crate::lz77;
Expand Down
2 changes: 1 addition & 1 deletion src/deflate/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
//! assert_eq!(decoded_data, b"Hello World!");
//! ```
pub use self::decode::Decoder;
pub use self::encode::DEFAULT_BLOCK_SIZE;
pub use self::encode::EncodeOptions;
pub use self::encode::Encoder;
pub use self::encode::DEFAULT_BLOCK_SIZE;

mod decode;
mod encode;
Expand Down
8 changes: 4 additions & 4 deletions src/finish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ impl<T: Complete> AutoFinish<T> {
}
impl<T: Complete> Drop for AutoFinish<T> {
fn drop(&mut self) {
if let Some(inner) = self.inner.take() {
if let Err(e) = inner.complete() {
panic!("{}", e);
}
if let Some(inner) = self.inner.take()
&& let Err(e) = inner.complete()
{
panic!("{}", e);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/non_blocking/deflate/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ impl Read for BlockDecoder {
mod tests {
use super::*;
use crate::deflate::{EncodeOptions, Encoder};
use crate::util::{nb_read_to_end, WouldBlockReader};
use crate::util::{WouldBlockReader, nb_read_to_end};
use alloc::{format, string::String, vec::Vec};
use core2::io::{Read, Write};

Expand Down
2 changes: 1 addition & 1 deletion src/non_blocking/gzip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl<R: Read> Read for Decoder<R> {
mod tests {
use super::*;
use crate::gzip::Encoder;
use crate::util::{nb_read_to_end, WouldBlockReader};
use crate::util::{WouldBlockReader, nb_read_to_end};
use alloc::vec::Vec;
use core2::io::Write;

Expand Down
2 changes: 1 addition & 1 deletion src/non_blocking/zlib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ impl<R: Read> Read for Decoder<R> {
#[cfg(test)]
mod tests {
use super::*;
use crate::util::{nb_read_to_end, WouldBlockReader};
use crate::util::{WouldBlockReader, nb_read_to_end};
use crate::zlib::{EncodeOptions, Encoder};
use alloc::vec::Vec;
use core2::io::Write;
Expand Down