Skip to content

Commit

Permalink
rustfmt updates for 1.67
Browse files Browse the repository at this point in the history
rustfmt updates for 1.67 in codegen

Signed-off-by: James Sturtevant <jstur@microsoft.com>
  • Loading branch information
jsturtevant committed Jan 30, 2023
1 parent 5eec980 commit 158c5e0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ttrpc-codegen/src/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ trait ProtobufOptions {
impl<'a> ProtobufOptions for &'a [model::ProtobufOption] {
fn by_name(&self, name: &str) -> Option<&model::ProtobufConstant> {
let option_name = name;
for model::ProtobufOption {
name,
value,
} in *self
{
for model::ProtobufOption { name, value } in *self {
if name == option_name {
return Some(value);
}
Expand Down

0 comments on commit 158c5e0

Please sign in to comment.