Skip to content

Commit

Permalink
refactor(Mssql): use Cow::Borrowed in release_savepoint_statement
Browse files Browse the repository at this point in the history
  • Loading branch information
LucianBuzzo committed Dec 2, 2024
1 parent 5d7f8bf commit bb3520d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quaint/src/connector/mssql/native/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ impl Queryable for Mssql {
// MSSQL doesn't have a "RELEASE SAVEPOINT" equivalent, so in a nested
// transaction we just continue onwards
fn release_savepoint_statement(&self, _depth: u32) -> Cow<'static, str> {
Cow::Owned("".to_string())
Cow::Borrowed("")
}

/// Statement to rollback to a savepoint
Expand Down

0 comments on commit bb3520d

Please sign in to comment.