Skip to content

Commit

Permalink
fix: get_filename should not consume self
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonish committed May 14, 2024
1 parent 5d6c33e commit 3cb257c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sqlx-sqlite/src/options/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ impl SqliteConnectOptions {
}

/// Gets the current name of the database file.
pub fn get_filename(self) -> Cow<'static, Path> {
self.filename
pub fn get_filename(&self) -> Cow<'static, Path> {
self.filename.clone()
}

/// Set the enforcement of [foreign key constraints](https://www.sqlite.org/pragma.html#pragma_foreign_keys).
Expand Down

0 comments on commit 3cb257c

Please sign in to comment.