Skip to content

Commit 5bea1c0

Browse files
r-barnesmeta-codesync[bot]
authored andcommitted
Extirpate FOLLY_NODISCARD in assistant/server/nlg/NlgConfigProd.h +5
Summary: `[[nodiscard]]` is now available in all of our compilers. This diff changes the code to rely on it directly. Generated with ``` reset && xbgs -l FOLLY_NODISCARD | grep -v Portability.h | grep -v json | grep -v xplat | grep -v ThirdParty/ | grep -v third-party | perl -pe 's/^fbsource.//' | xargs -n 100 perl -pe 's/FOLLY_NODISCARD/[[nodiscard]]/' -i ``` Reviewed By: dtolnay Differential Revision: D87101274 fbshipit-source-id: 09bf74b289c97f8c406163146cd618edcf328544
1 parent 5aaeedf commit 5bea1c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cachelib/allocator/Handle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ struct ReadHandleImpl {
436436
// if the handle becomes/is ready, this returns the
437437
// original callback back to the caller to execute.
438438
//
439-
FOLLY_NODISCARD ReadyCallback onReady(ReadyCallback&& callBack) {
439+
[[nodiscard]] ReadyCallback onReady(ReadyCallback&& callBack) {
440440
return (waitContext_) ? waitContext_->onReady(std::move(callBack))
441441
: std::move(callBack);
442442
}

0 commit comments

Comments
 (0)