From 05b3e6892155315d73c3387f921d7123f93a37ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Thu, 17 Sep 2026 14:18:30 +0200 Subject: [PATCH] Fix format --- src/interface.jl | 6 +++--- test/test_basics.jl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index 7f1187b..2773ec9 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -378,7 +378,7 @@ implement a method for [`mutable_copy`](@ref) instead. copy_if_mutable(x) = copy_if_mutable_fallback(mutability(typeof(x)), x) function operate_to_fallback!(::IsNotMutable, output, op::Function, args...) - throw( + return throw( ArgumentError( "Cannot call `operate_to!(::$(typeof(output)), $op, " * "::$(join(typeof.(args), ", ::")))` as objects of type " * @@ -475,7 +475,7 @@ function buffered_operate_to_fallback!( op::Function, args..., ) - throw( + return throw( ArgumentError( "Cannot call `buffered_operate_to!(::$(typeof(buffer)), " * "::$(typeof(output)), $op, ::$(join(typeof.(args), ", ::")))` " * @@ -547,7 +547,7 @@ function buffered_operate_fallback!( op::Function, args..., ) - throw( + return throw( ArgumentError( "Cannot call `buffered_operate!(::$(typeof(buffer)), $op, " * "::$(join(typeof.(args), ", ::")))` as objects of type " * diff --git a/test/test_basics.jl b/test/test_basics.jl index 57efa6c..2aa5af5 100644 --- a/test/test_basics.jl +++ b/test/test_basics.jl @@ -347,7 +347,7 @@ end function test_issue_316_SubArray() y = reshape([1.0], 1, 1, 1) - Y = view(y,:,:,1) + Y = view(y, :, :, 1) ret = reshape([1.0], 1, 1) ret = MA.operate!!(MA.add_mul, ret, 2.0, Y) @test ret == reshape([3.0], 1, 1)