Skip to content

Commit d197e23

Browse files
[pre-commit.ci] pre-commit autoupdate (#1779)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](pre-commit/pre-commit-hooks@v5.0.0...v6.0.0) - [github.com/pre-commit/mirrors-clang-format: v20.1.8 → v21.1.0](pre-commit/mirrors-clang-format@v20.1.8...v21.1.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent d6d01a4 commit d197e23

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ exclude: '^share/openPMD/thirdParty'
1818
# See https://pre-commit.com/hooks.html for more hooks
1919
repos:
2020
- repo: https://github.com/pre-commit/pre-commit-hooks
21-
rev: v5.0.0
21+
rev: v6.0.0
2222
hooks:
2323
- id: trailing-whitespace
2424
args: [--markdown-linebreak-ext=md]
@@ -66,7 +66,7 @@ repos:
6666
# clang-format v13
6767
# to run manually, use .github/workflows/clang-format/clang-format.sh
6868
- repo: https://github.com/pre-commit/mirrors-clang-format
69-
rev: v20.1.8
69+
rev: v21.1.0
7070
hooks:
7171
- id: clang-format
7272
# By default, the clang-format hook configures:

include/openPMD/auxiliary/ShareRaw.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ template <typename T>
4545
[[deprecated(
4646
"For storing/loading data via raw pointers use "
4747
"storeChunkRaw<>()/loadChunkRaw<>()")]] //
48-
std::shared_ptr<T>
49-
shareRaw(T *x)
48+
std::shared_ptr<T> shareRaw(T *x)
5049
{
5150
return std::shared_ptr<T>(x, [](T *) {});
5251
}
@@ -55,8 +54,7 @@ template <typename T>
5554
[[deprecated(
5655
"For storing/loading data via raw pointers use "
5756
"storeChunkRaw<>()/loadChunkRaw<>()")]] //
58-
std::shared_ptr<T const>
59-
shareRaw(T const *x)
57+
std::shared_ptr<T const> shareRaw(T const *x)
6058
{
6159
return std::shared_ptr<T const>(x, [](T const *) {});
6260
}

0 commit comments

Comments
 (0)