Skip to content

Commit 0650ba2

Browse files
gridbugsnicokoch
andauthored
Replace mem::replace with assignment
Co-Authored-By: Nicolas Koch <nioko1337@googlemail.com>
1 parent 99c0c36 commit 0650ba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/source/buffered.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ where
8787
if let Frame::Data(next_data) = next {
8888
// Swap the current FrameData with the next one, allowing the current one
8989
// to go out of scope.
90-
mem::replace(self, next_data);
90+
*self = next_data;
9191
} else {
9292
break;
9393
}

0 commit comments

Comments
 (0)