@@ -47,7 +47,7 @@ impl error::Error for Error {
47
47
/// SASLprep is defined in [RFC 4013][].
48
48
///
49
49
/// [RFC 4013]: https://tools.ietf.org/html/rfc4013
50
- pub fn saslprep < ' a > ( s : & ' a str ) -> Result < Cow < ' a , str > , Error > {
50
+ pub fn saslprep ( s : & str ) -> Result < Cow < ' _ , str > , Error > {
51
51
// fast path for ascii text
52
52
if s. chars ( )
53
53
. all ( |c| c. is_ascii ( ) && !tables:: ascii_control_character ( c) ) {
@@ -127,7 +127,7 @@ fn is_prohibited_bidirectional_text(s: &str) -> bool {
127
127
/// Nameprep is defined in [RFC 3491][].
128
128
///
129
129
/// [RFC 3491]: https://tools.ietf.org/html/rfc3491
130
- pub fn nameprep < ' a > ( s : & ' a str ) -> Result < Cow < ' a , str > , Error > {
130
+ pub fn nameprep ( s : & str ) -> Result < Cow < ' _ , str > , Error > {
131
131
// 3. Mapping
132
132
let mapped = s. chars ( )
133
133
. filter ( |& c| !tables:: commonly_mapped_to_nothing ( c) )
@@ -175,7 +175,7 @@ pub fn nameprep<'a>(s: &'a str) -> Result<Cow<'a, str>, Error> {
175
175
/// Nameprep is defined in [RFC 3920, Appendix A][].
176
176
///
177
177
/// [RFC 3920, Appendix A]: https://tools.ietf.org/html/rfc3920#appendix-A
178
- pub fn nodeprep < ' a > ( s : & ' a str ) -> Result < Cow < ' a , str > , Error > {
178
+ pub fn nodeprep ( s : & str ) -> Result < Cow < ' _ , str > , Error > {
179
179
// A.3. Mapping
180
180
let mapped = s. chars ( )
181
181
. filter ( |& c| !tables:: commonly_mapped_to_nothing ( c) )
@@ -233,7 +233,7 @@ fn prohibited_node_character(c: char) -> bool {
233
233
/// Nameprep is defined in [RFC 3920, Appendix B][].
234
234
///
235
235
/// [RFC 3920, Appendix B]: https://tools.ietf.org/html/rfc3920#appendix-B
236
- pub fn resourceprep < ' a > ( s : & ' a str ) -> Result < Cow < ' a , str > , Error > {
236
+ pub fn resourceprep ( s : & str ) -> Result < Cow < ' _ , str > , Error > {
237
237
// B.3. Mapping
238
238
let mapped = s. chars ( )
239
239
. filter ( |& c| !tables:: commonly_mapped_to_nothing ( c) )
0 commit comments