commit 70121dcbaca9fa04ac5d4f8e380dcc2e5cb8781f
parent febbe4eb5862159932b2b025374d2375c093d841
Author: Valentin Brandl <valentin.brandl@ebsnet.de>
Date: Tue, 6 Sep 2022 10:07:46 +0200
Remove unnecessary clone
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib.rs b/src/lib.rs
@@ -22,7 +22,7 @@ macro_rules! create_generator {
pub struct $gen_name(&'static str);
impl Word for $gen_name {
fn new(word: &'static str) -> Self {
- $gen_name(word.clone())
+ $gen_name(word)
}
fn entropy() -> f64 {