Skip to content

Commit c6ca817

Browse files
committed
remove debug clone count
1 parent 01da714 commit c6ca817

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

sqlx-core/src/sql_str.rs

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::borrow::Borrow;
22
use std::hash::{Hash, Hasher};
3-
use std::sync::{Arc, Mutex};
3+
use std::sync::Arc;
44

55
/// A SQL string that is safe to execute on a database connection.
66
///
@@ -125,16 +125,8 @@ enum Repr {
125125
ArcString(Arc<String>),
126126
}
127127

128-
static COUNT_CLONES: Mutex<usize> = Mutex::new(0usize);
129-
130128
impl Clone for SqlStr {
131129
fn clone(&self) -> Self {
132-
let mut lock = COUNT_CLONES.lock().unwrap();
133-
*lock += 1;
134-
let clones: usize = *lock;
135-
drop(lock);
136-
137-
println!("------- Count clones: {clones} --------\n\n\n");
138130
Self(match &self.0 {
139131
Repr::Static(s) => Repr::Static(s),
140132
Repr::Arced(s) => Repr::Arced(s.clone()),

0 commit comments

Comments
 (0)