Skip to content

Commit

Permalink
Update Rust toolchain to 1.78.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcono1234 committed May 3, 2024
1 parent 28919a5 commit edf8900
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[toolchain]
channel = "1.77.0"
channel = "1.78.0"
profile = "minimal"
components = ["clippy", "rustfmt", "rust-docs"]
2 changes: 1 addition & 1 deletion src/reader/stream_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1981,7 +1981,7 @@ impl<R: Read> JsonReader for JsonStreamReader<R> {

if let Some(ref mut json_path) = self.json_path {
match json_path.last_mut().unwrap() {
JsonPathPiece::ObjectMember(path_name) => *path_name = name.clone(),
JsonPathPiece::ObjectMember(path_name) => path_name.clone_from(&name),
_ => unreachable!("Path should be object member"),
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/custom_json_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ mod custom_reader {

self.expects_name = false;
if let JsonPathPiece::ObjectMember(path_name) = self.json_path.last_mut().unwrap() {
*path_name = name.to_owned();
name.clone_into(path_name);
} else {
unreachable!()
}
Expand Down

0 comments on commit edf8900

Please sign in to comment.