From 14c11bff87525e00e3be2b04050eede4350127ef Mon Sep 17 00:00:00 2001 From: Dominique Luna Date: Fri, 8 Sep 2023 11:24:16 -0400 Subject: [PATCH] fix #753 - to less transforms inside a macro --- Project.toml | 2 +- test/sciml_style.jl | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index 96ce8795f..8d5ea8dff 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "JuliaFormatter" uuid = "98e50ef6-434e-11e9-1051-2b60c6c9e899" authors = ["Dominique Luna "] -version = "1.0.36" +version = "1.0.37" [deps] CSTParser = "00ebfdb7-1f24-5e51-bd34-a7502290713f" diff --git a/test/sciml_style.jl b/test/sciml_style.jl index 0993f6de0..eb921b543 100644 --- a/test/sciml_style.jl +++ b/test/sciml_style.jl @@ -4,10 +4,8 @@ m.inv_match === nothing && throw(ArgumentError("Backwards matching not defined. `complete` the matching first.")) """ formatted_str = raw""" - @noinline function require_complete(m::Matching) - m.inv_match === nothing && - throw(ArgumentError("Backwards matching not defined. `complete` the matching first.")) - end + @noinline require_complete(m::Matching) = m.inv_match === nothing && + throw(ArgumentError("Backwards matching not defined. `complete` the matching first.")) """ @test format_text(str, SciMLStyle()) == formatted_str