···424424 let mut route = self.routes.at(&path);
425425426426 if route.is_err() {
427427- if self.options.contains(&RouterOption::TrimTrailingSlashes)
427427+ if self
428428+ .options
429429+ .contains(&RouterOption::RemoveExtraTrailingSlash)
428430 && path.ends_with('/')
429431 && path != "/"
430432 {
+1-1
src/router_option.rs
···33pub enum RouterOption {
44 /// Trim trailing slashes from the URL path if it is present and a route
55 /// match exists
66- TrimTrailingSlashes,
66+ RemoveExtraTrailingSlash,
77 /// Add a trailing slash to the URL path if it is missing and a route
88 /// match exists
99 AddMissingTrailingSlash,