diff --git a/lang/rust/Cargo.lock b/lang/rust/Cargo.lock index 6fd2e9a610b..bf2db770996 100644 --- a/lang/rust/Cargo.lock +++ b/lang/rust/Cargo.lock @@ -1218,9 +1218,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.127" +version = "1.0.128" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8043c06d9f82bd7271361ed64f415fe5e12a77fdb52e573e7f06a516dea329ad" +checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8" dependencies = [ "itoa", "memchr", diff --git a/lang/rust/Cargo.toml b/lang/rust/Cargo.toml index c54bd8d6c42..3e3d13c79be 100644 --- a/lang/rust/Cargo.toml +++ b/lang/rust/Cargo.toml @@ -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. diff --git a/lang/rust/avro/src/reader.rs b/lang/rust/avro/src/reader.rs index 39c3473c83e..1655dccfa79 100644 --- a/lang/rust/avro/src/reader.rs +++ b/lang/rust/avro/src/reader.rs @@ -54,7 +54,7 @@ struct Block<'r, R> { } impl<'r, R: Read> Block<'r, R> { - fn new(reader: R, schemata: Vec<&'r Schema>) -> AvroResult> { + fn new(reader: R, schemata: Vec<&'r Schema>) -> AvroResult> { let mut block = Block { reader, codec: Codec::Null, diff --git a/lang/rust/avro/src/ser.rs b/lang/rust/avro/src/ser.rs index 748e2d54164..519306a4d0f 100644 --- a/lang/rust/avro/src/ser.rs +++ b/lang/rust/avro/src/ser.rs @@ -64,7 +64,7 @@ impl SeqSerializer { } impl<'a> SeqVariantSerializer<'a> { - pub fn new(index: u32, variant: &'a str, len: Option) -> SeqVariantSerializer { + pub fn new(index: u32, variant: &'a str, len: Option) -> SeqVariantSerializer<'a> { let items = match len { Some(len) => Vec::with_capacity(len), None => Vec::new(), @@ -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,