Hide the routes method.

This commit is contained in:
Sergio Benitez 2017-05-14 21:12:04 -07:00
parent ce34ea82a6
commit 41832a57d1
1 changed files with 1 additions and 0 deletions

View File

@ -566,6 +566,7 @@ impl Rocket {
}
/// Retrieves all of the mounted routes.
#[doc(hidden)]
#[inline(always)]
pub fn routes<'a>(&'a self) -> impl Iterator<Item=&'a Route> + 'a {
self.router.routes()