File tree Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -94,11 +94,7 @@ pub fn github_access_token(req: &mut dyn Request) -> CargoResult<Response> {
94
94
}
95
95
96
96
// Fetch the access token from github using the code we just got
97
- let token = req
98
- . app ( )
99
- . github
100
- . exchange ( code)
101
- . map_err ( |s| human ( & s) ) ?;
97
+ let token = req. app ( ) . github . exchange ( code) . map_err ( |s| human ( & s) ) ?;
102
98
103
99
let ghuser = github:: github :: < GithubUser > ( req. app ( ) , "/user" , & token) ?;
104
100
Original file line number Diff line number Diff line change @@ -317,10 +317,7 @@ fn update_attributes() {
317
317
} ;
318
318
let mut badge_attributes_travis_ci2 = HashMap :: new ( ) ;
319
319
badge_attributes_travis_ci2. insert ( String :: from ( "repository" ) , String :: from ( "rust-lang/rust" ) ) ;
320
- badges. insert (
321
- String :: from ( "travis-ci" ) ,
322
- badge_attributes_travis_ci2,
323
- ) ;
320
+ badges. insert ( String :: from ( "travis-ci" ) , badge_attributes_travis_ci2) ;
324
321
krate. update ( & badges) ;
325
322
let current_badges = krate. badges ( ) ;
326
323
assert_eq ! ( current_badges. len( ) , 1 ) ;
Original file line number Diff line number Diff line change @@ -19,9 +19,7 @@ impl<'a> Request for RequestProxy<'a> {
19
19
self . other . conduit_version ( )
20
20
}
21
21
fn method ( & self ) -> conduit:: Method {
22
- self . method
23
- . clone ( )
24
- . unwrap_or_else ( || self . other . method ( ) )
22
+ self . method . clone ( ) . unwrap_or_else ( || self . other . method ( ) )
25
23
}
26
24
fn scheme ( & self ) -> conduit:: Scheme {
27
25
self . other . scheme ( )
You can’t perform that action at this time.
0 commit comments