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 7709ae3 commit 08e69be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions protobuf/src/reflect/acc/v2/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ where
}

/// Make accessor for map field, new version
// This is only used in generated code.
// Rust compiler allows it, and we want to avoid exposing traits in public API.
#[allow(private_bounds)]
pub fn make_map_simpler_accessor_new<M, T>(
name: &'static str,
get_field: for<'a> fn(&'a M) -> &'a T,
Expand Down

0 comments on commit 08e69be

Please sign in to comment.