diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-05-27 00:54:26 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-05-27 00:59:02 -0400 |
| commit | 2c70481b1f8e7d820f3e449885ec601b75ba23cf (patch) | |
| tree | 90223c0fb8c772a085bc3a91e9ec2a1767b41b24 /src/db/mod.rs | |
| parent | 79d3598282fd573931e7cb14e4d3e54aad7c943c (diff) | |
Fix a couple of stray `clippy` lints.
The added suppression for `manual_ok_err` is a mixed choice; I'd prefer `r.ok()` in most senses, but `BroadcastStream` is still new enough that I wouldn't be entirely surprised if the Tokio team added new error variants, that we'd want to expressly handle.
I do feel a bit better suppressing individual [`clippy::pedantic`][pedantic] lints; they're allow-by-default for this reason anyways, and I opted into them (see 452c8d0d9edb9894c108b6d577806c7c9d0071dd) knowing that not all of them would be perfectly appropriate.
[pedantic]: https://doc.rust-lang.org/clippy/
Diffstat (limited to 'src/db/mod.rs')
| -rw-r--r-- | src/db/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/mod.rs b/src/db/mod.rs index e0522d4..632cd9c 100644 --- a/src/db/mod.rs +++ b/src/db/mod.rs @@ -42,7 +42,7 @@ pub async fn prepare(url: &str, backup_url: &str) -> Result<SqlitePool, Error> { Err(Error::Drop(drop_error, migrate_error))?; } else { Err(migrate_error)?; - }; + } } Sqlite::drop_database(backup_url).await?; |
