Skip to content

Commit afb3cc5

Browse files
Update sqlx-core/src/query_builder.rs
Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
1 parent 211aa78 commit afb3cc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlx-core/src/query_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ where
533533

534534
/// Deconstruct this `QueryBuilder`, returning the built SQL. May not be syntactically correct.
535535
pub fn into_sql(self) -> String {
536-
Arc::into_inner(self.query).unwrap()
536+
Arc::unwrap_or_clone(self.query)
537537
}
538538
}
539539

0 commit comments

Comments
 (0)