Skip to content

Commit

Permalink
chore(codec): Remove redundant trim (#1797)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Jul 13, 2024
1 parent 819c390 commit dd313db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tonic/src/codec/compression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ impl fmt::Display for CompressionEncoding {
}

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

/// Compress `len` bytes from `decompressed_buf` into `out_buf`.
Expand Down

0 comments on commit dd313db

Please sign in to comment.