From cce6662d635bb2115f9f2a7bab92cc105166e761 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 18 Sep 2024 01:27:47 -0400 Subject: App methods now return errors that allow not-found cases to be distinguished. --- src/app.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/app.rs') diff --git a/src/app.rs b/src/app.rs index 7a43be9..1177c5e 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1,7 +1,5 @@ use sqlx::sqlite::SqlitePool; -use crate::error::BoxedError; - use crate::{ channel::app::{Broadcaster, Channels}, index::app::Index, @@ -15,7 +13,7 @@ pub struct App { } impl App { - pub async fn from(db: SqlitePool) -> Result { + pub async fn from(db: SqlitePool) -> Result { let broadcaster = Broadcaster::from_database(&db).await?; Ok(Self { db, broadcaster }) } -- cgit v1.2.3