Skip to content

Commit 59c3aac

Browse files
committed
rust-1.90: Fix warnings on unnecessary parentheses
Signed-off-by: John Eckersberg <[email protected]>
1 parent a859318 commit 59c3aac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/ostree-ext/src/generic_decompress.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const DOCKER_TYPE_LAYER_TAR: &str = "application/vnd.docker.image.rootfs.diff.ta
2424

2525
/// Extends the `Read` trait with another method to get mutable access to the inner reader
2626
trait ReadWithGetInnerMut: Read + Send + 'static {
27-
fn get_inner_mut(&mut self) -> &mut (dyn Read);
27+
fn get_inner_mut(&mut self) -> &mut dyn Read;
2828
}
2929

3030
// TransparentDecompressor
@@ -38,7 +38,7 @@ impl<R: Read + Send + 'static> Read for TransparentDecompressor<R> {
3838
}
3939

4040
impl<R: Read + Send + 'static> ReadWithGetInnerMut for TransparentDecompressor<R> {
41-
fn get_inner_mut(&mut self) -> &mut (dyn Read) {
41+
fn get_inner_mut(&mut self) -> &mut dyn Read {
4242
&mut self.0
4343
}
4444
}
@@ -54,7 +54,7 @@ impl<R: std::io::BufRead + Send + 'static> Read for GzipDecompressor<R> {
5454
}
5555

5656
impl<R: std::io::BufRead + Send + 'static> ReadWithGetInnerMut for GzipDecompressor<R> {
57-
fn get_inner_mut(&mut self) -> &mut (dyn Read) {
57+
fn get_inner_mut(&mut self) -> &mut dyn Read {
5858
self.0.get_mut()
5959
}
6060
}
@@ -72,7 +72,7 @@ impl<'a: 'static, R: std::io::BufRead + Send + 'static> Read for ZstdDecompresso
7272
impl<'a: 'static, R: std::io::BufRead + Send + 'static> ReadWithGetInnerMut
7373
for ZstdDecompressor<'a, R>
7474
{
75-
fn get_inner_mut(&mut self) -> &mut (dyn Read) {
75+
fn get_inner_mut(&mut self) -> &mut dyn Read {
7676
self.0.get_mut()
7777
}
7878
}

0 commit comments

Comments
 (0)