mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:57:46 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
8639d8bc21
commit
d26aabff04
140 changed files with 1202 additions and 723 deletions
|
@ -75,13 +75,15 @@ private:
|
|||
template<typename T, typename ErrorType>
|
||||
class [[nodiscard]] ErrorOr {
|
||||
public:
|
||||
ErrorOr() requires(IsSame<T, Empty>)
|
||||
ErrorOr()
|
||||
requires(IsSame<T, Empty>)
|
||||
: m_value_or_error(Empty {})
|
||||
{
|
||||
}
|
||||
|
||||
template<typename U>
|
||||
ALWAYS_INLINE ErrorOr(U&& value) requires(!IsSame<RemoveCVReference<U>, ErrorOr<T, ErrorType>>)
|
||||
ALWAYS_INLINE ErrorOr(U&& value)
|
||||
requires(!IsSame<RemoveCVReference<U>, ErrorOr<T, ErrorType>>)
|
||||
: m_value_or_error(forward<U>(value))
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue