From 442c5b0e169a6f84c0dee346fa378055dd3dfadb Mon Sep 17 00:00:00 2001 From: SisMaker <1713699517@qq.com> Date: Sun, 28 Mar 2021 20:49:16 +0800 Subject: [PATCH] =?UTF-8?q?ft:=20=E9=83=A8=E5=88=86=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/eFmt.erl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/eFmt.erl b/src/eFmt.erl index b868652..ebd4dfc 100644 --- a/src/eFmt.erl +++ b/src/eFmt.erl @@ -1,7 +1,6 @@ -module(eFmt). -import(binary, [split/2, part/3]). --import(lists, [reverse/2, keyfind/3]). -compile(inline). -compile({inline_size, 128}). @@ -629,7 +628,7 @@ buildSmall([], CharsLimit, P, S, W, Other, Acc) -> [One, Two, Three] -> [Three, Two, One]; Ret -> - reverse(Ret, []) + lists:reverse(Ret, []) end end; buildSmall([OneCA | Cs], CharsLimit, P, S, W, Other, Acc) -> @@ -998,7 +997,7 @@ charsLen(S) -> end. getOpt(Key, TupleList, Default) -> - case keyfind(Key, 1, TupleList) of + case lists:keyfind(Key, 1, TupleList) of false -> Default; ValueTuple ->