File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ pub struct Authentication {
6464 session : String ,
6565}
6666
67+ #[ inline]
6768fn csrf_token ( document : & Document ) -> Option < String > {
6869 let mut candidate = document. find ( Attr ( "name" , "csrf_token" ) ) ;
6970 if let Some ( val) = candidate. next ( ) . and_then ( |node| node. attr ( "value" ) ) {
@@ -273,7 +274,10 @@ pub fn submit(
273274 . find ( |t| t. inner_html ( ) . to_lowercase ( ) . starts_with ( & task) )
274275 . and_then ( |n| n. attr ( "value" ) )
275276 . 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) ;
277281 let mut langs = doc. find ( Descendant ( Attr ( "id" , & * select_lang) , Name ( "option" ) ) ) ;
278282 let lang_id = langs
279283 . find ( |t| t. inner_html ( ) . to_lowercase ( ) . starts_with ( & lang) )
@@ -292,5 +296,4 @@ pub fn submit(
292296}
293297
294298#[ cfg( test) ]
295- mod tests {
296- }
299+ mod tests { }
You can’t perform that action at this time.
0 commit comments