rustfmt mess

This commit is contained in:
наб 2025-07-22 23:02:46 +02:00
parent 67749b1a30
commit 688d59002e
No known key found for this signature in database
GPG Key ID: BCFD0B018D2658F1

View File

@ -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();