mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 06:24:16 +00:00
fix: get_filename should not consume self (#3233)
This commit is contained in:
parent
60d033eda2
commit
e7f71900f8
1 changed files with 2 additions and 2 deletions
|
@ -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) -> &Path {
|
||||
&self.filename
|
||||
}
|
||||
|
||||
/// Set the enforcement of [foreign key constraints](https://www.sqlite.org/pragma.html#pragma_foreign_keys).
|
||||
|
|
Loading…
Reference in a new issue