Common JSON wrapper type for response and request (#140)

This commit is contained in:
Sunli
2021-08-07 16:07:13 +02:00
committed by GitHub
parent 3d45a97db9
commit 345163e98d
6 changed files with 162 additions and 141 deletions
+2 -2
View File
@@ -65,10 +65,10 @@ macro_rules! define_rejection {
) => {
$(#[$m])*
#[derive(Debug)]
pub struct $name(pub(super) tower::BoxError);
pub struct $name(pub(crate) tower::BoxError);
impl $name {
pub(super) fn from_err<E>(err: E) -> Self
pub(crate) fn from_err<E>(err: E) -> Self
where
E: Into<tower::BoxError>,
{