@@ -53,12 +53,12 @@ impl Frontmatter {
53
53
54
54
pub fn merge_path ( mut self , relpath : & relative_path:: RelativePath ) -> Self {
55
55
if let Some ( name) = relpath. file_name ( ) {
56
- let mut split_name = crate :: path:: split_ext ( name) ;
56
+ let mut split_name = path:: split_ext ( name) ;
57
57
58
58
#[ cfg( feature = "preview_unstable" ) ]
59
59
if split_name. 1 == Some ( "liquid" ) {
60
60
self . templated . get_or_insert ( true ) ;
61
- split_name = crate :: path:: split_ext ( split_name. 0 ) ;
61
+ split_name = path:: split_ext ( split_name. 0 ) ;
62
62
} else {
63
63
self . templated . get_or_insert ( false ) ;
64
64
}
@@ -70,19 +70,19 @@ impl Frontmatter {
70
70
self . format . get_or_insert ( format) ;
71
71
72
72
while split_name. 1 . is_some ( ) {
73
- split_name = crate :: path:: split_ext ( split_name. 0 ) ;
73
+ split_name = path:: split_ext ( split_name. 0 ) ;
74
74
}
75
75
76
76
if self . published_date . is_none ( ) || self . slug . is_none ( ) {
77
77
let file_stem = split_name. 0 ;
78
- let ( file_date, file_stem) = crate :: path:: parse_file_stem ( file_stem) ;
78
+ let ( file_date, file_stem) = path:: parse_file_stem ( file_stem) ;
79
79
if self . published_date . is_none ( ) {
80
80
self . published_date = file_date;
81
81
}
82
82
if self . slug . is_none ( ) {
83
- let slug = crate :: path:: slugify ( file_stem) ;
83
+ let slug = path:: slugify ( file_stem) ;
84
84
if self . title . is_none ( ) {
85
- self . title = Some ( crate :: path:: titleize_slug ( & slug) ) ;
85
+ self . title = Some ( path:: titleize_slug ( & slug) ) ;
86
86
}
87
87
self . slug = Some ( slug) ;
88
88
}
@@ -135,7 +135,7 @@ impl Frontmatter {
135
135
}
136
136
137
137
impl fmt:: Display for Frontmatter {
138
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
138
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
139
139
let converted = serde_yaml:: to_string ( self ) . expect ( "should always be valid" ) ;
140
140
let subset = converted
141
141
. strip_prefix ( "---" )
@@ -199,7 +199,7 @@ impl Default for Permalink {
199
199
}
200
200
201
201
impl fmt:: Display for Permalink {
202
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
202
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
203
203
write ! ( f, "{}" , self . as_str( ) )
204
204
}
205
205
}
@@ -230,13 +230,13 @@ impl ExplicitPermalink {
230
230
}
231
231
}
232
232
233
- impl std :: fmt:: Display for ExplicitPermalink {
234
- fn fmt ( & self , fmt : & mut std :: fmt:: Formatter ) -> std :: fmt:: Result {
233
+ impl fmt:: Display for ExplicitPermalink {
234
+ fn fmt ( & self , fmt : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
235
235
self . 0 . fmt ( fmt)
236
236
}
237
237
}
238
238
239
- impl < ' s > std :: convert :: TryFrom < & ' s str > for ExplicitPermalink {
239
+ impl < ' s > TryFrom < & ' s str > for ExplicitPermalink {
240
240
type Error = & ' static str ;
241
241
242
242
fn try_from ( value : & str ) -> Result < Self , Self :: Error > {
@@ -249,7 +249,7 @@ impl<'s> std::convert::TryFrom<&'s str> for ExplicitPermalink {
249
249
}
250
250
}
251
251
252
- impl std :: convert :: TryFrom < String > for ExplicitPermalink {
252
+ impl TryFrom < String > for ExplicitPermalink {
253
253
type Error = & ' static str ;
254
254
255
255
fn try_from ( value : String ) -> Result < Self , Self :: Error > {
0 commit comments