Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/datastructures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl<'a, T: 'a> iter::Iterator for MultiDictIter<'a, T> {
}

/// This is used to deal with multiple values for the same key.
#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct MultiDict<T> {
map: HashMap<String, Vec<T>>,
}
Expand Down
8 changes: 5 additions & 3 deletions src/routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fn parse_rule(rule: &str) -> Vec<(Option<&str>, &str)> {
}

/// The matcher holds the url regex object.
#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct Matcher {
pub regex: Regex
}
Expand Down Expand Up @@ -146,6 +146,7 @@ impl From<Regex> for Matcher {
/// Request Slash error.
/// This is for example the case if you request `/foo`
/// although the correct URL is `/foo/`.
#[derive(Debug)]
pub struct RequestSlashError;


Expand All @@ -158,7 +159,7 @@ pub enum MapAdapterMatched {


/// A Rule represents one URL pattern.
#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct Rule {
/// The matcher is used to match the url path.
pub matcher: Matcher,
Expand Down Expand Up @@ -223,7 +224,7 @@ impl Rule {


/// The map stores all the URL rules.
#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct Map {
rules: Vec<Rule>,
}
Expand All @@ -250,6 +251,7 @@ impl Map {


/// Does the URL matching and building based on runtime information.
#[derive(Debug)]
pub struct MapAdapter<'m> {
map: &'m Map,
url_scheme: String,
Expand Down
1 change: 1 addition & 0 deletions src/templating.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ trait TemplateLoader {
}

/// A template loader that loads templates from the file system.
#[derive(Debug)]
pub struct FileSystemLoader {
search_path: String,
}
Expand Down