lib: remove alias `lib.warn`

This commit is contained in:
Frothy 2024-05-21 07:08:17 -04:00
parent 69257c03a3
commit 68ca227a87
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
inherit (builtins) hasAttr head throw typeOf isList isAttrs isBool isInt isString isPath isFloat toJSON; inherit (builtins) hasAttr head throw typeOf isList isAttrs isBool isInt isString isPath isFloat toJSON;
inherit (lib.attrsets) mapAttrsToList filterAttrs; inherit (lib.attrsets) mapAttrsToList filterAttrs;
inherit (lib.strings) concatStringsSep concatMapStringsSep stringToCharacters; inherit (lib.strings) concatStringsSep concatMapStringsSep stringToCharacters;
inherit (lib.trivial) boolToString; inherit (lib.trivial) boolToString warn;
in rec { in rec {
wrapLuaConfig = { wrapLuaConfig = {
luaBefore ? "", luaBefore ? "",
@ -67,7 +67,7 @@ in rec {
then args.expr then args.expr
else if hasAttr "__empty" args else if hasAttr "__empty" args
then then
lib.warn '' warn ''
Using `__empty` to define an empty lua table is deprecated. Use an empty attrset instead. Using `__empty` to define an empty lua table is deprecated. Use an empty attrset instead.
'' "{ }" '' "{ }"
else else