diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ec60bc43f..4641bbf09 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,13 +2,13 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/sirosen/check-jsonschema - rev: 0.33.0 + rev: 0.33.3 hooks: - id: check-github-actions - id: check-github-workflows - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-added-large-files # prevents giant files from being committed. - id: check-case-conflict # checks for files that would conflict in case-insensitive filesystems. @@ -22,7 +22,7 @@ repos: - id: trailing-whitespace # trims trailing whitespace. - repo: https://github.com/pre-commit/mirrors-clang-format - rev: 'v20.1.6' + rev: 'v21.1.0' hooks: - id: clang-format args: ["-style=file", "-i"] diff --git a/src/rpp/rpp/observers/dynamic_observer.hpp b/src/rpp/rpp/observers/dynamic_observer.hpp index 6a585961e..24af9494f 100644 --- a/src/rpp/rpp/observers/dynamic_observer.hpp +++ b/src/rpp/rpp/observers/dynamic_observer.hpp @@ -76,9 +76,7 @@ namespace rpp::details::observers .on_error_ptr = +[](const Base* b, const std::exception_ptr& err) { cast(b).on_error(err); }, .on_completed_ptr = +[](const Base* b) { cast(b).on_completed(); }, .set_upstream_ptr = +[](Base* b, const rpp::disposable_wrapper& d) { cast(b).set_upstream(d); }, - .is_disposed_ptr = +[](const Base* b) { - return cast(b).is_disposed(); - }}} + .is_disposed_ptr = +[](const Base* b) { return cast(b).is_disposed(); }}} , m_observer{std::move(observer)} { } diff --git a/src/rpp/rpp/utils/constraints.hpp b/src/rpp/rpp/utils/constraints.hpp index f4261d194..8a47e751a 100644 --- a/src/rpp/rpp/utils/constraints.hpp +++ b/src/rpp/rpp/utils/constraints.hpp @@ -42,7 +42,7 @@ namespace rpp::constraint template concept is_constructible_from = requires(Args... args) { { - T{static_cast(args)...} + T{static_cast(args)...} } -> std::same_as; }; diff --git a/src/rpp/rpp/utils/utils.hpp b/src/rpp/rpp/utils/utils.hpp index 09a82e2e9..26c0d8de6 100644 --- a/src/rpp/rpp/utils/utils.hpp +++ b/src/rpp/rpp/utils/utils.hpp @@ -72,7 +72,7 @@ namespace rpp::utils operator T&() const; template - operator const T &() const; + operator const T&() const; template operator T&&() const;