Skip to content

Commit

Permalink
Fix breakage on status code edition.
Browse files Browse the repository at this point in the history
  • Loading branch information
ned14 committed Sep 18, 2019
1 parent 5129a90 commit a394242
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions include/llfio/revision.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Note the second line of this file must ALWAYS be the git SHA, third line ALWAYS the git SHA update time
#define LLFIO_PREVIOUS_COMMIT_REF fc4e2fb074e3db8ae94d26a42fa70940b7c718b4
#define LLFIO_PREVIOUS_COMMIT_DATE "2019-09-18 20:53:59 +00:00"
#define LLFIO_PREVIOUS_COMMIT_UNIQUE fc4e2fb0
#define LLFIO_PREVIOUS_COMMIT_REF 5129a908d2855e7f22f5e1f3577a91826115075d
#define LLFIO_PREVIOUS_COMMIT_DATE "2019-09-18 22:06:21 +00:00"
#define LLFIO_PREVIOUS_COMMIT_UNIQUE 5129a908
6 changes: 3 additions & 3 deletions include/llfio/v2.0/detail/impl/posix/directory_handle.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ result<directory_handle> directory_handle::directory(const path_handle &base, pa
}
// If failed to rename, remove
(void) rfh.unlink();
return r.error();
return std::move(r).error();
};
if(base.is_valid())
{
Expand All @@ -125,7 +125,7 @@ result<directory_handle> directory_handle::directory(const path_handle &base, pa
auto r = rename_random_dir_over_existing_dir(base, path);
if(!r)
{
return r.error();
return std::move(r).error();
}
ret = std::move(r).value();
goto opened;
Expand All @@ -150,7 +150,7 @@ result<directory_handle> directory_handle::directory(const path_handle &base, pa
auto r = rename_random_dir_over_existing_dir(base, path);
if(!r)
{
return r.error();
return std::move(r).error();
}
ret = std::move(r).value();
goto opened;
Expand Down
2 changes: 1 addition & 1 deletion include/llfio/v2.0/detail/impl/posix/file_handle.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ result<file_handle> file_handle::file(const path_handle &base, file_handle::path
}
// If failed to rename, remove
(void) rfh.unlink();
return r.error();
return std::move(r).error();
}
return posix_error();
}
Expand Down

0 comments on commit a394242

Please sign in to comment.