mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
lib: add deprecation warning for __empty
This commit is contained in:
parent
af72dc105d
commit
ac20dfbdd4
1 changed files with 5 additions and 0 deletions
|
@ -65,6 +65,11 @@ in rec {
|
|||
then
|
||||
if isLuaInline args
|
||||
then args.expr
|
||||
else if hasAttr "__empty" args
|
||||
then
|
||||
lib.warn ''
|
||||
Using `__empty` to define an empty lua table is deprecated. Use an empty attrset instead.
|
||||
'' "{ }"
|
||||
else
|
||||
"{"
|
||||
+ (concatStringsSep ","
|
||||
|
|
Loading…
Reference in a new issue