Kaynağa Gözat

Fix build break due to generalized parameter bounds

Brian Koropoff 12 yıl önce
ebeveyn
işleme
d4bf6ab71d
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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]
 }