Skip to content

Commit dd313db

Browse files
authored
chore(codec): Remove redundant trim (#1797)
1 parent 819c390 commit dd313db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tonic/src/codec/compression.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ impl fmt::Display for CompressionEncoding {
188188
}
189189

190190
fn split_by_comma(s: &str) -> impl Iterator<Item = &str> {
191-
s.trim().split(',').map(|s| s.trim())
191+
s.split(',').map(|s| s.trim())
192192
}
193193

194194
/// Compress `len` bytes from `decompressed_buf` into `out_buf`.

0 commit comments

Comments
 (0)