doc: rust: simplify snippet
Do not use recursive attribute sets where not needed, it could confuse the reader.
This commit is contained in:
parent
4ab63a8ca8
commit
4771684208
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user