Skip to content

Commit d0d2e6b

Browse files
committed
fix warnings
1 parent 6d6ef8c commit d0d2e6b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/auth.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub fn rand_alphanumeric(len: usize) -> String {
3939
let chars: String = std::iter::repeat(())
4040
.map(|()| rng.sample(rand::distributions::Alphanumeric))
4141
.map(char::from)
42-
.take(7)
42+
.take(len)
4343
.collect();
4444

4545
chars

src/pool.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ impl ConnectionPool {
508508
// before setting it globally.
509509
// Do this async and somewhere else, we don't have to wait here.
510510
if config.general.validate_config {
511-
let mut validate_pool = pool.clone();
511+
let validate_pool = pool.clone();
512512
tokio::task::spawn(async move {
513513
let _ = validate_pool.validate().await;
514514
});

0 commit comments

Comments
 (0)