File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ pub struct Authentication {
64
64
session : String ,
65
65
}
66
66
67
+ #[ inline]
67
68
fn csrf_token ( document : & Document ) -> Option < String > {
68
69
let mut candidate = document. find ( Attr ( "name" , "csrf_token" ) ) ;
69
70
if let Some ( val) = candidate. next ( ) . and_then ( |node| node. attr ( "value" ) ) {
@@ -273,7 +274,10 @@ pub fn submit(
273
274
. find ( |t| t. inner_html ( ) . to_lowercase ( ) . starts_with ( & task) )
274
275
. and_then ( |n| n. attr ( "value" ) )
275
276
. ok_or ( ErrorKind :: NoSuchTask ) ?;
276
- let select_lang = format ! ( "select-lang-{}" , task_id) ;
277
+ // FIXME: rust-lang/rust#43135
278
+ // let select_lang = format!("select-lang-{}", task_id);
279
+ let mut select_lang = "select-lang-" . to_owned ( ) ;
280
+ select_lang. push_str ( task_id) ;
277
281
let mut langs = doc. find ( Descendant ( Attr ( "id" , & * select_lang) , Name ( "option" ) ) ) ;
278
282
let lang_id = langs
279
283
. find ( |t| t. inner_html ( ) . to_lowercase ( ) . starts_with ( & lang) )
@@ -292,5 +296,4 @@ pub fn submit(
292
296
}
293
297
294
298
#[ cfg( test) ]
295
- mod tests {
296
- }
299
+ mod tests { }
You can’t perform that action at this time.
0 commit comments