From cb5558a5dcf88803f38b15fa3664bb4446e9e1a2 Mon Sep 17 00:00:00 2001 From: Michael Klishin Date: Sat, 21 Dec 2019 18:27:39 +0300 Subject: [PATCH] Ignore http_uri:encode/1 deprecation warning Switching to uri_string as the warning suggest would ruin OTP 20 compatibility. --- src/r3_hex_api.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/r3_hex_api.erl b/src/r3_hex_api.erl index e6466f24..42818b9b 100644 --- a/src/r3_hex_api.erl +++ b/src/r3_hex_api.erl @@ -28,6 +28,8 @@ put(Config, Path, Body) -> delete(Config, Path) -> request(Config, delete, Path, undefined). +-compile({nowarn_deprecated_function, [http_uri, encode, 1]}). + %% @private encode_query_string(List) -> QueryString =