Explorar el Código

ft: 去除编译警告

master
SisMaker hace 1 año
padre
commit
aec1b499e4
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      src/template/utEtsFold.erl

+ 2
- 2
src/template/utEtsFold.erl Ver fichero

@ -126,8 +126,8 @@ new_bag(Count) ->
replace(Key) ->
[{Key, Map}] = ets:lookup(test_replace, Key),
NewMap = Map#{aaa => aaa},
Ms = ets:fun2ms(fun({Key1, OldMap}) when Key =/= Key1 -> {Key1, 1} end),
_NewMap = Map#{aaa => aaa},
Ms = ets:fun2ms(fun({Key1, _OldMap}) when Key =/= Key1 -> {Key1, 1} end),
ets:select_replace(test_replace, Ms).
replace2(Key) ->
[{Key, Map} = Old] = ets:lookup(test_replace, Key),

Cargando…
Cancelar
Guardar