Simplify default Result generics.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-07-08 12:08:13 +00:00
parent 8244d78cb2
commit ae707ab465
42 changed files with 95 additions and 115 deletions

View File

@@ -439,7 +439,7 @@ pub async fn fetch_remote_content_legacy(
}
#[implement(super::Service)]
fn check_fetch_authorized(&self, mxc: &Mxc<'_>) -> Result<()> {
fn check_fetch_authorized(&self, mxc: &Mxc<'_>) -> Result {
if self
.services
.server
@@ -463,7 +463,7 @@ fn check_fetch_authorized(&self, mxc: &Mxc<'_>) -> Result<()> {
}
#[implement(super::Service)]
fn check_legacy_freeze(&self) -> Result<()> {
fn check_legacy_freeze(&self) -> Result {
self.services
.server
.config