Skip to content

Commit

Permalink
Bump serde_json from 1.0.127 to 1.0.128 in /lang/rust (#3149)
Browse files Browse the repository at this point in the history
* Bump serde_json from 1.0.127 to 1.0.128 in /lang/rust

Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.127 to 1.0.128.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](serde-rs/json@1.0.127...1.0.128)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix clippy errors in nightly build

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
  • Loading branch information
dependabot[bot] and martin-g authored Sep 9, 2024
1 parent 8979c37 commit c017809
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lang/rust/Cargo.lock

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

2 changes: 1 addition & 1 deletion lang/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ documentation = "https://docs.rs/apache-avro"
log = { default-features = false, version = "0.4.22" }
serde = { default-features = false, version = "1.0.209", features = ["derive"] }
serde_bytes = { default-features = false, version = "0.11.15", features = ["std"] }
serde_json = { default-features = false, version = "1.0.127", features = ["std"] }
serde_json = { default-features = false, version = "1.0.128", features = ["std"] }

[profile.release.package.hello-wasm]
# Tell `rustc` to optimize for small code size.
Expand Down
2 changes: 1 addition & 1 deletion lang/rust/avro/src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct Block<'r, R> {
}

impl<'r, R: Read> Block<'r, R> {
fn new(reader: R, schemata: Vec<&'r Schema>) -> AvroResult<Block<R>> {
fn new(reader: R, schemata: Vec<&'r Schema>) -> AvroResult<Block<'r, R>> {
let mut block = Block {
reader,
codec: Codec::Null,
Expand Down
4 changes: 2 additions & 2 deletions lang/rust/avro/src/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl SeqSerializer {
}

impl<'a> SeqVariantSerializer<'a> {
pub fn new(index: u32, variant: &'a str, len: Option<usize>) -> SeqVariantSerializer {
pub fn new(index: u32, variant: &'a str, len: Option<usize>) -> SeqVariantSerializer<'a> {
let items = match len {
Some(len) => Vec::with_capacity(len),
None => Vec::new(),
Expand Down Expand Up @@ -97,7 +97,7 @@ impl StructSerializer {
}

impl<'a> StructVariantSerializer<'a> {
pub fn new(index: u32, variant: &'a str, len: usize) -> StructVariantSerializer {
pub fn new(index: u32, variant: &'a str, len: usize) -> StructVariantSerializer<'a> {
StructVariantSerializer {
index,
variant,
Expand Down

0 comments on commit c017809

Please sign in to comment.