util.hex: Deprecate to/from in favour of encode/decode, for consistency!

This commit is contained in:
Matthew Wild 2022-03-04 15:22:45 +00:00
parent fe56effa55
commit ab835fed13
8 changed files with 31 additions and 27 deletions

View file

@ -14,7 +14,7 @@ local usermanager = require "core.usermanager";
local generate_uuid = require "util.uuid".generate;
local new_sasl = require "util.sasl".new;
local hex = require"util.hex";
local to_hex, from_hex = hex.to, hex.from;
local to_hex, from_hex = hex.encode, hex.decode;
local saslprep = require "util.encodings".stringprep.saslprep;
local secure_equals = require "util.hashes".equals;