Skip to content

Commit 3275e85

Browse files
r-barnesmeta-codesync[bot]
authored andcommitted
Extirpate FOLLY_NODISCARD in eden/fs/utils/ChronoParse.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: D87101315 fbshipit-source-id: 0bd19e81a6f974002eb09fe04590bed2fc9229d1
1 parent 1d72b70 commit 3275e85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

eden/fs/utils/ChronoParse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ std::string_view chronoParseErrorToString(ChronoParseError error);
3535
/**
3636
* Parse a string to a std::chrono::nanoseconds duration.
3737
*/
38-
FOLLY_NODISCARD folly::Expected<std::chrono::nanoseconds, ChronoParseError>
38+
[[nodiscard]] folly::Expected<std::chrono::nanoseconds, ChronoParseError>
3939
stringToDuration(folly::StringPiece src);
4040

4141
/**

0 commit comments

Comments
 (0)