From 3fe3dcf231407a33e4dc23bdc76ff4078f41b3d4 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 22 Jun 2024 02:54:29 +0900 Subject: refactor: remove unnecessary dereference --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3-70-g09d2