Skip to content

Commit 372e23f

Browse files
committed
Address clippy::manual_str_repeat
1 parent d2cf054 commit 372e23f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/tests/server_binary.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,7 @@ impl ServerBin {
9292
env.remove("DB_MIN_SIZE");
9393
// Other configuration variables needed for the application to boot.
9494
env.insert("WEB_ALLOWED_ORIGINS".into(), "http://localhost:8888".into());
95-
env.insert(
96-
"SESSION_KEY".into(),
97-
std::iter::repeat('a').take(32).collect(),
98-
);
95+
env.insert("SESSION_KEY".into(), "a".repeat(32));
9996
env.insert("GH_CLIENT_ID".into(), String::new());
10097
env.insert("GH_CLIENT_SECRET".into(), String::new());
10198

0 commit comments

Comments
 (0)