From 2c70481b1f8e7d820f3e449885ec601b75ba23cf Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Tue, 27 May 2025 00:54:26 -0400 Subject: 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/ --- src/db/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/db/mod.rs') 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 { Err(Error::Drop(drop_error, migrate_error))?; } else { Err(migrate_error)?; - }; + } } Sqlite::drop_database(backup_url).await?; -- cgit v1.2.3