aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-06-22 02:54:29 +0900
committernsfisis <nsfisis@gmail.com>2024-06-22 02:54:29 +0900
commit3fe3dcf231407a33e4dc23bdc76ff4078f41b3d4 (patch)
tree4b68101b6c6f4be35729fede323f910d58bb864e
parent88f0aa2e22e8122ec09f17c0bd95b977c8d99514 (diff)
downloadrand-word-gen-3fe3dcf231407a33e4dc23bdc76ff4078f41b3d4.tar.gz
rand-word-gen-3fe3dcf231407a33e4dc23bdc76ff4078f41b3d4.tar.zst
rand-word-gen-3fe3dcf231407a33e4dc23bdc76ff4078f41b3d4.zip
refactor: remove unnecessary dereference
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 330cc87..1734052 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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;
}