From 921f38a73e5d58a5a6077477a8b52d2705798f55 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Tue, 17 Sep 2024 19:06:20 -0400 Subject: Express record dependencies through types. This provides a convenient place to _stick_ "not found" errors, though actually introducing them will come in a later commit. --- src/index/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/index/app.rs') diff --git a/src/index/app.rs b/src/index/app.rs index 41b12fa..a4ef57f 100644 --- a/src/index/app.rs +++ b/src/index/app.rs @@ -14,7 +14,7 @@ impl<'a> Index<'a> { Self { db } } - pub async fn channel(&self, channel: channel::Id) -> Result { + pub async fn channel(&self, channel: &channel::Id) -> Result { let mut tx = self.db.begin().await?; let channel = tx.channels().by_id(channel).await?; tx.commit().await?; -- cgit v1.2.3