-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change the rust version from 1.64.0 to 1.66.0 #3874
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3874 +/- ##
==========================================
+ Coverage 53.77% 53.89% +0.13%
==========================================
Files 616 616
Lines 67796 67804 +8
==========================================
+ Hits 36448 36536 +88
+ Misses 31348 31268 -80
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 27 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
b999b4c
to
e88f9b0
Compare
Benchmark for 950bbb9Click to view benchmark
|
d4d6614
to
a049465
Compare
Benchmark for 83c6837Click to view benchmark
|
@@ -672,7 +672,7 @@ impl<'d> serde::de::DeserializeSeed<'d> for &TypeInstantiation { | |||
T::Vector(layout) => Ok(match layout.as_ref() { | |||
T::U8 => { | |||
let bytes = <Vec<u8>>::deserialize(deserializer)?; | |||
V::String(format!("0x{}", hex::encode(&bytes))) | |||
V::String(format!("0x{}", hex::encode(bytes))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里不需要传引用了,rust编译器内部做了啥?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里应该是因为bytes是Vec,而Vec本来就已经实现了AsRef这个trait,因此不需要&bytes,直接bytes传过去就好。
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Other information