File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ impl SsCredential {
255
255
Ok ( Self {
256
256
attributes,
257
257
label : format ! (
258
- "keyring v{}: { user}@{service}:{target}" ,
258
+ "{ user}@{service}:{target} (keyring v{}) " ,
259
259
env!( "CARGO_PKG_VERSION" ) ,
260
260
) ,
261
261
target : Some ( target. to_string ( ) ) ,
Original file line number Diff line number Diff line change @@ -339,7 +339,6 @@ impl WinCredential {
339
339
user : & str ,
340
340
) -> Result < WinCredential > {
341
341
const VERSION : & str = env ! ( "CARGO_PKG_VERSION" ) ;
342
- let metadata = format ! ( "keyring-rs v{VERSION} for service '{service}', user '{user}'" ) ;
343
342
let credential = if let Some ( target) = target {
344
343
// if target.is_empty() {
345
344
// return Err(ErrorCode::Invalid(
@@ -354,7 +353,7 @@ impl WinCredential {
354
353
username : user. to_string ( ) ,
355
354
target_name : target. to_string ( ) ,
356
355
target_alias : String :: new ( ) ,
357
- comment : metadata ,
356
+ comment : format ! ( "{user}@{service}:{target} (keyring v{VERSION})" ) ,
358
357
}
359
358
} else {
360
359
Self {
@@ -369,7 +368,7 @@ impl WinCredential {
369
368
username : user. to_string ( ) ,
370
369
target_name : format ! ( "{user}.{service}" ) ,
371
370
target_alias : String :: new ( ) ,
372
- comment : metadata ,
371
+ comment : format ! ( "{user}@{service}:{user}.{service} (keyring v{VERSION})" ) ,
373
372
}
374
373
} ;
375
374
credential. validate_attributes ( None , None ) ?;
You can’t perform that action at this time.
0 commit comments