From 213f3418711fe8decf09d23029865a49a9417ddd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 7 Sep 2022 03:20:35 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- c_api/include/taichi/cpp/taichi.hpp | 3 ++- c_api/src/taichi_vulkan_impl.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/c_api/include/taichi/cpp/taichi.hpp b/c_api/include/taichi/cpp/taichi.hpp index e9056b7c9e76f2..e33fd2f1e947f2 100644 --- a/c_api/include/taichi/cpp/taichi.hpp +++ b/c_api/include/taichi/cpp/taichi.hpp @@ -304,7 +304,8 @@ class ArgumentEntry { public: ArgumentEntry() = delete; ArgumentEntry(const ArgumentEntry &) = delete; - ArgumentEntry(ArgumentEntry && b) : arg_(b.arg_) {} + ArgumentEntry(ArgumentEntry &&b) : arg_(b.arg_) { + } ArgumentEntry(TiArgument *arg) : arg_(arg) { } diff --git a/c_api/src/taichi_vulkan_impl.cpp b/c_api/src/taichi_vulkan_impl.cpp index 92c782afb46514..4081bcf5d1ad38 100644 --- a/c_api/src/taichi_vulkan_impl.cpp +++ b/c_api/src/taichi_vulkan_impl.cpp @@ -106,7 +106,8 @@ taichi::lang::gfx::GfxRuntime &VulkanRuntimeOwned::get_gfx_runtime() { } TiImage VulkanRuntime::allocate_image(const taichi::lang::ImageParams ¶ms) { - taichi::lang::DeviceAllocation devalloc = get_gfx_runtime().create_image(params); + taichi::lang::DeviceAllocation devalloc = + get_gfx_runtime().create_image(params); return devalloc2devimg(*this, devalloc); } void VulkanRuntime::free_image(TiImage image) {