mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-16 05:36:50 +00:00
Simplify default Result generics.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
8244d78cb2
commit
ae707ab465
42 files changed
+95
-115
No files matched your search
@@ -275,7 +275,7 @@ impl Service {
|
||||
}
|
||||
|
||||
#[tracing::instrument(skip(self, room_id), level = "debug")]
|
||||
pub async fn flush_room(&self, room_id: &RoomId) -> Result<()> {
|
||||
pub async fn flush_room(&self, room_id: &RoomId) -> Result {
|
||||
let servers = self
|
||||
.services
|
||||
.state_cache
|
||||
@@ -286,7 +286,7 @@ impl Service {
|
||||
}
|
||||
|
||||
#[tracing::instrument(skip(self, servers), level = "debug")]
|
||||
pub async fn flush_servers<'a, S>(&self, servers: S) -> Result<()>
|
||||
pub async fn flush_servers<'a, S>(&self, servers: S) -> Result
|
||||
where
|
||||
S: Stream<Item = &'a ServerName> + Send + 'a,
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user