Преглед изворни кода

Merge pull request #22 from bkoropoff/fix-lifetimes

Fix build break due to generalized parameter bounds
Simon Sapin пре 12 година
родитељ
комит
bb68de835a
1 измењених фајлова са 1 додато и 1 уклоњено
  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]
 }