Commit d188bd70 authored by Igor Sugak's avatar Igor Sugak Committed by Facebook Github Bot

run clang-format again

Summary: as titled

Reviewed By: Orvid

Differential Revision: D12922934

fbshipit-source-id: b283b905393d93fb41f18553f12ad33f335e1507
parent 03f0917a
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
#include <cstddef> #include <cstddef>
#include <folly/portability/Config.h>
#include <folly/CPortability.h> #include <folly/CPortability.h>
#include <folly/portability/Config.h>
// Unaligned loads and stores // Unaligned loads and stores
namespace folly { namespace folly {
......
...@@ -400,9 +400,9 @@ FutureBase<T>::thenImplementation(F&& func, R) { ...@@ -400,9 +400,9 @@ FutureBase<T>::thenImplementation(F&& func, R) {
auto f = Future<B>(sf.core_); auto f = Future<B>(sf.core_);
sf.core_ = nullptr; sf.core_ = nullptr;
this->setCallback_([state = futures::detail::makeCoreCallbackState( this->setCallback_(
std::move(p), std::forward<F>(func))]( [state = futures::detail::makeCoreCallbackState(
Try<T>&& t) mutable { std::move(p), std::forward<F>(func))](Try<T>&& t) mutable {
if (!R::Arg::isTry() && t.hasException()) { if (!R::Arg::isTry() && t.hasException()) {
state.setException(std::move(t.exception())); state.setException(std::move(t.exception()));
} else { } else {
...@@ -413,8 +413,8 @@ FutureBase<T>::thenImplementation(F&& func, R) { ...@@ -413,8 +413,8 @@ FutureBase<T>::thenImplementation(F&& func, R) {
state.setException(std::move(tf2.exception())); state.setException(std::move(tf2.exception()));
} else { } else {
auto statePromise = state.stealPromise(); auto statePromise = state.stealPromise();
auto tf3 = auto tf3 = chainExecutor(
chainExecutor(statePromise.core_->getExecutor(), *std::move(tf2)); statePromise.core_->getExecutor(), *std::move(tf2));
std::exchange(statePromise.core_, nullptr) std::exchange(statePromise.core_, nullptr)
->setProxy(std::exchange(tf3.core_, nullptr)); ->setProxy(std::exchange(tf3.core_, nullptr));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment