summaryrefslogtreecommitdiff
path: root/src/index/app.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/index/app.rs')
-rw-r--r--src/index/app.rs2
1 files changed, 1 insertions, 1 deletions
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<Channel, BoxedError> {
+ pub async fn channel(&self, channel: &channel::Id) -> Result<Channel, BoxedError> {
let mut tx = self.db.begin().await?;
let channel = tx.channels().by_id(channel).await?;
tx.commit().await?;