Skip to content

Comments

fix: remove unused GzEncoder import in decompression#647

Merged
jplatte merged 1 commit intotower-rs:mainfrom
HaiqalAly:fix/remove-GzEncoder-import
Feb 17, 2026
Merged

fix: remove unused GzEncoder import in decompression#647
jplatte merged 1 commit intotower-rs:mainfrom
HaiqalAly:fix/remove-GzEncoder-import

Conversation

@HaiqalAly
Copy link
Contributor

Motivation

Hi! This is a very, very minor PR but, I noticed that flate2::write::GzEncoder was imported in the decompression module but doesn't seem to be used in the actual source code. I have tested removing it to see if anything would break.

Solution

Removed the unused use flate2::write::GzEncoder; import from tower-http/src/decompression/mod.rs.

Testing

I ran cargo test --doc to make sure the documentation examples still compile correctly (since they have their own imports), and all 75 tests passed! I also ran the regular test suite to verify nothing broke (except for a few unrelated deprecation warning in auth modules).

Please let me know if I missed anything or if this change makes sense. Thank you!

@jplatte jplatte force-pushed the fix/remove-GzEncoder-import branch from 63f60dc to 42e5e4e Compare February 17, 2026 09:13
@jplatte
Copy link
Member

jplatte commented Feb 17, 2026

Thanks!

@jplatte jplatte merged commit 2cc14fa into tower-rs:main Feb 17, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants