Skip to content

Commit

Permalink
Allow user to override the error type
Browse files Browse the repository at this point in the history
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
  • Loading branch information
stphnsmpsn and davidpdrsn committed Sep 23, 2022
1 parent b375725 commit 09f11fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tonic/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,4 @@ pub(crate) type Error = Box<dyn std::error::Error + Send + Sync>;
#[cfg_attr(docsrs, doc(cfg(feature = "codegen")))]
pub mod codegen;

pub type Result<T> = std::result::Result<T, Status>;
pub type Result<T, E = Status> = std::result::Result<T, E>;

0 comments on commit 09f11fd

Please sign in to comment.