Parcourir la source

Merge pull request #22 from bkoropoff/fix-lifetimes

Fix build break due to generalized parameter bounds
Simon Sapin il y a 12 ans
Parent
commit
bb68de835a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/format.rs

+ 1 - 1
src/format.rs

@@ -16,7 +16,7 @@ use std::fmt::{Show, Formatter, FormatError};
 use super::Url;
 
 /// 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).
     pub path: &'a [T]
 }