Diff

util/serialization.lua @ 12975:d10957394a3c

util: Prefix module imports with prosody namespace
author Kim Alvefur <zash@zash.se>
date Fri, 17 Mar 2023 16:23:16 +0100
parent 12782:8815d3090928
child 13131:03f1509a6105
line wrap: on
line diff
--- a/util/serialization.lua	Fri Mar 17 16:23:12 2023 +0100
+++ b/util/serialization.lua	Fri Mar 17 16:23:16 2023 +0100
@@ -16,13 +16,13 @@
 local s_match = string.match;
 local t_concat = table.concat;
 
-local to_hex = require "util.hex".to;
+local to_hex = require "prosody.util.hex".to;
 
 local pcall = pcall;
-local envload = require"util.envload".envload;
+local envload = require"prosody.util.envload".envload;
 
 if not math.type then
-	require "util.mathcompat"
+	require "prosody.util.mathcompat"
 end
 
 local pos_inf, neg_inf = math.huge, -math.huge;