mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
lib.mirrorFunctionArgs: inline call to setFunctionArgs
This commit is contained in:
@@ -7,7 +7,6 @@ let
|
||||
functionArgs
|
||||
pathExists
|
||||
release
|
||||
setFunctionArgs
|
||||
toBaseDigits
|
||||
version
|
||||
versionSuffix
|
||||
@@ -1177,7 +1176,10 @@ in
|
||||
let
|
||||
fArgs = functionArgs f;
|
||||
in
|
||||
g: setFunctionArgs g fArgs;
|
||||
g: {
|
||||
__functor = self: g;
|
||||
__functionArgs = fArgs;
|
||||
};
|
||||
|
||||
/**
|
||||
Turns any non-callable values into constant functions.
|
||||
|
||||
Reference in New Issue
Block a user