Skip to content

Commit

Permalink
Fix resolution of field type when it is the same as the field name (#100
Browse files Browse the repository at this point in the history
)

Fixes #99
  • Loading branch information
andrewhickman authored Apr 3, 2024
1 parent d554c53 commit 5c22645
Show file tree
Hide file tree
Showing 17 changed files with 387 additions and 262 deletions.
67 changes: 53 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions prost-reflect/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ serde = ["serde1", "base64", "serde-value"]
text-format = ["logos"]

[dependencies]
base64 = { version = "0.21.4", optional = true }
logos = { version = "0.13.0", optional = true }
base64 = { version = "0.22.0", optional = true }
logos = { version = "0.14.0", optional = true }
miette = { version = "7.0.0", optional = true }
once_cell = { version = "1.9.0" }
prost = "0.12.0"
Expand Down
1 change: 1 addition & 0 deletions prost-reflect/src/descriptor/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1862,6 +1862,7 @@ where
Wrapper(i.collect())
}

#[allow(clippy::ptr_arg)]
fn indices<T>(f: &Vec<T>) -> Range<DescriptorIndex> {
0..to_index(f.len())
}
Expand Down
Loading

0 comments on commit 5c22645

Please sign in to comment.