Skip to content

Commit

Permalink
Mute more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stepancheg committed Jun 26, 2024
1 parent 08e69be commit 2f9ac85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions protobuf/src/coded_input_stream/input_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use crate::coded_input_stream::buf_read_or_reader::BufReadOrReader;
#[derive(Debug)]
pub(crate) enum InputSource<'a> {
Read(BufReadOrReader<'a>),
#[allow(dead_code)] // Keep the field to clarify we logically hold the reference.
Slice(&'a [u8]),
#[cfg(feature = "bytes")]
Bytes(&'a Bytes),
Expand Down
1 change: 1 addition & 0 deletions protobuf/src/reflect/oneof/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub struct OneofDescriptor {
}

pub(crate) enum OneofDescriptorImplRef {
#[allow(dead_code)]
Generated(&'static GeneratedOneofDescriptor),
Dynamic,
}
Expand Down

0 comments on commit 2f9ac85

Please sign in to comment.