diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-06-22 02:54:29 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-06-22 02:54:29 +0900 |
| commit | 3fe3dcf231407a33e4dc23bdc76ff4078f41b3d4 (patch) | |
| tree | 4b68101b6c6f4be35729fede323f910d58bb864e /src/lib.rs | |
| parent | 88f0aa2e22e8122ec09f17c0bd95b977c8d99514 (diff) | |
| download | rand-word-gen-3fe3dcf231407a33e4dc23bdc76ff4078f41b3d4.tar.gz rand-word-gen-3fe3dcf231407a33e4dc23bdc76ff4078f41b3d4.tar.zst rand-word-gen-3fe3dcf231407a33e4dc23bdc76ff4078f41b3d4.zip | |
refactor: remove unnecessary dereference
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -25,7 +25,7 @@ impl Model { .unwrap_or(NUM_OF_LETTERS); for _ in 0..len { let chars = &self.chars[prefix]; - let c = select_one_char(rng, &chars); + let c = select_one_char(rng, chars); result.push(c as char); prefix = (c - b'a') as usize; } |
