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