From 43cceb0dff40731374198b408f7b913b0baa49db Mon Sep 17 00:00:00 2001 From: shipengcheng1230 Date: Thu, 30 Jul 2020 11:01:14 -0400 Subject: [PATCH] remove mlstyle dep --- Project.toml | 6 ++---- src/GmshTools.jl | 1 - src/macros.jl | 6 ++---- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Project.toml b/Project.toml index 99ca475..381fd35 100644 --- a/Project.toml +++ b/Project.toml @@ -1,18 +1,16 @@ name = "GmshTools" uuid = "82e2f556-b1bd-5f1a-9576-f93c0da5f0ee" authors = ["Pengcheng Shi"] -version = "0.4.0" +version = "0.4.1" [deps] Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb" -MLStyle = "d8e11817-5142-5d16-987a-aa16d5891078" Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" Requires = "ae029012-a4dd-5104-9daa-d747884805df" [compat] -MLStyle = "0.3.1" Requires = "1.0" -julia = "1.3" +julia = "1" [extras] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/src/GmshTools.jl b/src/GmshTools.jl index 3384f3c..bc31755 100644 --- a/src/GmshTools.jl +++ b/src/GmshTools.jl @@ -1,6 +1,5 @@ module GmshTools -using MLStyle using Requires const depsfile = joinpath(@__DIR__, "..", "deps", "deps.jl") diff --git a/src/macros.jl b/src/macros.jl index 73906ce..1a2fa19 100644 --- a/src/macros.jl +++ b/src/macros.jl @@ -22,10 +22,8 @@ macro gmsh_open(name, f) end "To match the tuple expression inside `begin` block and discard the rest." -match_tuple = @λ begin - e::Expr -> e.head == :tuple ? e : nothing - a -> nothing -end +match_tuple(e::Expr) = e.head == :tuple ? e : nothing +match_tuple(a) = nothing "To call the tuple args by `f`." macro fun_call_tuple(f, expr)