doc: rust: simplify snippet

Do not use recursive attribute sets where not needed, it could confuse the reader.
This commit is contained in:
Robin Stumm 2021-09-22 12:20:24 +02:00 committed by Raphael Megzari
parent 4ab63a8ca8
commit 4771684208

View File

@ -116,7 +116,7 @@ is updated after every change to `Cargo.lock`. Therefore,
a `Cargo.lock` file using the `cargoLock` argument. For example:
```nix
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage {
pname = "myproject";
version = "1.0.0";
@ -137,7 +137,7 @@ preprocess or generate the file as part of your build:
```nix
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage {
pname = "myproject";
version = "1.0.0";