Skip to content

Commit 9e9575b

Browse files
jasonishjayy-lmao
authored andcommitted
fix: get_filename should not consume self (launchbadge#3233)
1 parent ad16c86 commit 9e9575b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlx-sqlite/src/options/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ impl SqliteConnectOptions {
212212
}
213213

214214
/// Gets the current name of the database file.
215-
pub fn get_filename(self) -> Cow<'static, Path> {
216-
self.filename
215+
pub fn get_filename(&self) -> &Path {
216+
&self.filename
217217
}
218218

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

0 commit comments

Comments
 (0)