Skip to content

Commit 4ad4088

Browse files
committed
rustfmt updates for 1.67
rustfmt updates for 1.67 in codegen Signed-off-by: James Sturtevant <jstur@microsoft.com>
1 parent 418c775 commit 4ad4088

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ttrpc-codegen/src/convert.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ trait ProtobufOptions {
4141
impl<'a> ProtobufOptions for &'a [model::ProtobufOption] {
4242
fn by_name(&self, name: &str) -> Option<&model::ProtobufConstant> {
4343
let option_name = name;
44-
for model::ProtobufOption {
45-
name,
46-
value,
47-
} in *self
48-
{
44+
for model::ProtobufOption { name, value } in *self {
4945
if name == option_name {
5046
return Some(value);
5147
}

0 commit comments

Comments
 (0)