Browse Source

Merge pull request #22 from bkoropoff/fix-lifetimes

Fix build break due to generalized parameter bounds
Simon Sapin 12 years ago
parent
commit
bb68de835a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/format.rs

+ 1 - 1
src/format.rs

@@ -16,7 +16,7 @@ use std::fmt::{Show, Formatter, FormatError};
 use super::Url;
 use super::Url;
 
 
 /// Formatter and serializer for URL path data.
 /// Formatter and serializer for URL path data.
-pub struct PathFormatter<'a, T> {
+pub struct PathFormatter<'a, T:'a> {
     /// The path as a slice of string-like objects (String or &str).
     /// The path as a slice of string-like objects (String or &str).
     pub path: &'a [T]
     pub path: &'a [T]
 }
 }