Reduce NotFound's visibility (#579)

It is only used in the crate's `routing` module.
This commit is contained in:
david-perez 2021-11-30 13:37:51 +01:00 committed by GitHub
parent affab9b4ec
commit 0c3e4a6f3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ use tower_service::Service;
/// This is used as the bottom service in a method router. You shouldn't have to
/// use it manually.
#[derive(Clone, Copy, Debug)]
pub(crate) struct NotFound;
pub(super) struct NotFound;
impl<B> Service<Request<B>> for NotFound
where