Просмотр исходного кода

test: move `maybe_expr` enable into rebar.config

JimMoen 2 лет назад
Родитель
Сommit
955b02d9bc
2 измененных файлов с 3 добавлено и 5 удалено
  1. 3 1
      rebar.config
  2. 0 4
      src/emqx_plugrel.erl

+ 3 - 1
rebar.config

@@ -1,5 +1,7 @@
 %% -*- mode: erlang -*-
-{erl_opts, [debug_info]}.
+
+{erl_opts, [debug_info, {feature, maybe_expr, enable}]}.
+
 {deps, [
     {erlavro, {git, "https://github.com/emqx/erlavro.git", {tag, "2.10.0"}}}
 ]}.

+ 0 - 4
src/emqx_plugrel.erl

@@ -1,9 +1,5 @@
 -module(emqx_plugrel).
 
--feature(maybe_expr, enable).
-
--include_lib("kernel/include/file.hrl").
-
 -export([init/1, do/1, format_error/1]).
 
 -define(METADATA_VSN, <<"0.1.0">>).