We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
mem::replace
1 parent 99c0c36 commit 0650ba2Copy full SHA for 0650ba2
src/source/buffered.rs
@@ -87,7 +87,7 @@ where
87
if let Frame::Data(next_data) = next {
88
// Swap the current FrameData with the next one, allowing the current one
89
// to go out of scope.
90
- mem::replace(self, next_data);
+ *self = next_data;
91
} else {
92
break;
93
}
0 commit comments