mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
rustfmt mess
This commit is contained in:
parent
67749b1a30
commit
688d59002e
@ -171,8 +171,7 @@ mod linux {
|
||||
let attr_url = b"url\0".as_ptr() as *const gchar;
|
||||
let schema = schema();
|
||||
match action {
|
||||
cargo_credential::Action::Get(_) => {
|
||||
unsafe {
|
||||
cargo_credential::Action::Get(_) => unsafe {
|
||||
let token_c = secret_password_lookup_sync(
|
||||
&schema,
|
||||
null_mut(),
|
||||
@ -204,8 +203,7 @@ mod linux {
|
||||
cache: CacheControl::Session,
|
||||
operation_independent: true,
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
cargo_credential::Action::Login(options) => {
|
||||
let label = label(registry.name.unwrap_or(registry.index_url));
|
||||
let token = CString::new(read_token(options, registry)?.expose()).unwrap();
|
||||
|
Loading…
x
Reference in New Issue
Block a user