Skip to content

Commit 211aa78

Browse files
Add comment to SqlStr
Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
1 parent 99fc942 commit 211aa78

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sqlx-core/src/sql_str.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ impl Clone for SqlStr {
138138
Self(match &self.0 {
139139
Repr::Static(s) => Repr::Static(s),
140140
Repr::Arced(s) => Repr::Arced(s.clone()),
141+
// If `.clone()` gets called once, assume it might get called again.
141142
_ => Repr::Arced(self.as_str().into()),
142143
})
143144
}

0 commit comments

Comments
 (0)