Skip to content

Commit

Permalink
sort: renamed symbol so devskim lint is recognized properly by VSCode
Browse files Browse the repository at this point in the history
`seed` to `sd`, as rustfmt was causing the devskim ignore comment to wrap causing a false positive warning
  • Loading branch information
jqnatividad committed Sep 5, 2024
1 parent 5b3ea0a commit 12db739
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cmd/sort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
RngKind::Faster => {
let mut rng = match args.flag_seed {
None => Xoshiro256Plus::from_rng(rand::thread_rng()).unwrap(),
Some(seed) => Xoshiro256Plus::seed_from_u64(seed), /* DevSkim: ignore
* DS148264 */
Some(sd) => Xoshiro256Plus::seed_from_u64(sd), // DevSkim: ignore DS148264
};
SliceRandom::shuffle(&mut *all, &mut rng); //DevSkim: ignore DS148264
},
Expand Down

0 comments on commit 12db739

Please sign in to comment.