File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ pub struct P<T: ?Sized> {
32
32
33
33
/// Construct a `P<T>` from a `T` value.
34
34
#[ allow( non_snake_case) ]
35
- pub fn P < T : ' static > ( value : T ) -> P < T > {
35
+ pub fn P < T > ( value : T ) -> P < T > {
36
36
P { ptr : Box :: new ( value) }
37
37
}
38
38
39
- impl < T : ' static > P < T > {
39
+ impl < T > P < T > {
40
40
/// Move out of the pointer.
41
41
/// Intended for chaining transformations not covered by `map`.
42
42
pub fn and_then < U , F > ( self , f : F ) -> U
@@ -86,7 +86,7 @@ impl<T: ?Sized> DerefMut for P<T> {
86
86
}
87
87
}
88
88
89
- impl < T : ' static + Clone > Clone for P < T > {
89
+ impl < T : Clone > Clone for P < T > {
90
90
fn clone ( & self ) -> P < T > {
91
91
P ( ( * * self ) . clone ( ) )
92
92
}
@@ -110,7 +110,7 @@ impl<T> fmt::Pointer for P<T> {
110
110
}
111
111
}
112
112
113
- impl < D : Decoder , T : ' static + Decodable < D > > Decodable < D > for P < T > {
113
+ impl < D : Decoder , T : Decodable < D > > Decodable < D > for P < T > {
114
114
fn decode ( d : & mut D ) -> P < T > {
115
115
P ( Decodable :: decode ( d) )
116
116
}
You can’t perform that action at this time.
0 commit comments