mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-12 14:40:03 +08:00
Fix -Wpessimizing-move
(cherry picked from commit 4569b4dbd603f17d1599219b1985996a41893230)
This commit is contained in:
parent
92d3f31df5
commit
8cfff4da4c
@ -232,7 +232,7 @@ TEST(FileTest, MoveAssignmentClosesFile) {
|
||||
File OpenBufferedFile(int &fd) {
|
||||
File f = open_file();
|
||||
fd = f.descriptor();
|
||||
return std::move(f);
|
||||
return f;
|
||||
}
|
||||
|
||||
TEST(FileTest, MoveFromTemporaryInCtor) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user