HomePhabricator
Diffusion Comm c040c3fbe885

[services] Backup - use `anyhow::Result` short form

Description

[services] Backup - use anyhow::Result short form

Summary:
According to the Rust docs:

Use Result<T, anyhow::Error>, or equivalently anyhow::Result<T>, as the return type of any fallible function.

I replaced all occurrences of anyhow::Result<T, anyhow::Error> with anyhow::Result<T>.

Related Linear issue: ENG-1841

Test Plan:

  • Backup service container builds.
  • Integration tests pass.

Reviewers: jon, marcin, tomek

Reviewed By: jon, marcin, tomek

Subscribers: ashoat, atul, abosh

Differential Revision: https://phab.comm.dev/D5299

Details

Provenance
bartekAuthored on Oct 5 2022, 1:53 AM
Reviewer
jon
Differential Revision
D5299: [services] Backup - use `anyhow::Result` short form
Parents
rCOMMe40c4596154a: [lib] Introduce `translateMediaToClientDBMediaInfos`
Branches
Unknown
Tags
Unknown