rustPlatform.importCargoLock: switch if/else statements

Now they are in the same order as the same check above
This commit is contained in:
Stefan Frijters
2026-03-23 18:03:30 +01:00
parent 4f9eda21d9
commit c3f361772d
@@ -283,12 +283,12 @@ let
mkdir -p $out/.cargo
${
if lockFile != null then
"ln -s ${lockFile} $out/Cargo.lock"
else
if lockFile == null then
''
printf "%s" "$lockFileContents" > "$out/Cargo.lock"
''
else
"ln -s ${lockFile} $out/Cargo.lock"
}
cat > $out/.cargo/config.toml <<EOF