diff options
author | Bas van Dijk <v.dijk.bas@gmail.com> | 2020-07-20 13:14:19 +0200 |
---|---|---|
committer | Bas van Dijk <v.dijk.bas@gmail.com> | 2020-07-20 13:14:19 +0200 |
commit | 6e7822b8f3e495e3c2c12b121ca81d8565298589 (patch) | |
tree | 895a92f784e3454312a88169f0dbc226df5d4990 /nixos/lib/qemu-flags.nix | |
parent | e15815e885db42e642ed67527df76bbcc35f3e91 (diff) |
lib: toHex -> toHexString & toBase -> toBaseDigits
This makes the type of these functions more apparent from the name.
Diffstat (limited to 'nixos/lib/qemu-flags.nix')
-rw-r--r-- | nixos/lib/qemu-flags.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/lib/qemu-flags.nix b/nixos/lib/qemu-flags.nix index 4774fd231683..0cf6977af4bb 100644 --- a/nixos/lib/qemu-flags.nix +++ b/nixos/lib/qemu-flags.nix @@ -6,7 +6,7 @@ let pkgs.lib.optionalString (n < 16) "0" + (if n > 255 then throw "Can't have more than 255 nets or nodes!" - else pkgs.lib.toHex n); + else pkgs.lib.toHexString n); in rec { |