@@ -93,8 +93,7 @@ impl Collection {
9393 let Some ( session) = self . service . session ( & session) . await else {
9494 tracing:: error!( "The session `{}` does not exist." , session) ;
9595 return Err ( ServiceError :: NoSession ( format ! (
96- "The session `{}` does not exist." ,
97- session
96+ "The session `{session}` does not exist."
9897 ) ) ) ;
9998 } ;
10099
@@ -201,8 +200,7 @@ impl Collection {
201200 alias : Arc :: new ( Mutex :: new ( alias. to_owned ( ) ) ) ,
202201 item_index : Arc :: new ( RwLock :: new ( 0 ) ) ,
203202 path : OwnedObjectPath :: try_from ( format ! (
204- "/org/freedesktop/secrets/collection/{}" ,
205- label
203+ "/org/freedesktop/secrets/collection/{label}"
206204 ) )
207205 . unwrap ( ) ,
208206 created,
@@ -312,15 +310,13 @@ impl Collection {
312310 pub async fn delete_item ( & self , path : & OwnedObjectPath ) -> Result < ( ) , ServiceError > {
313311 let Some ( item) = self . item_from_path ( path) . await else {
314312 return Err ( ServiceError :: NoSuchObject ( format ! (
315- "Item `{}` does not exist." ,
316- path
313+ "Item `{path}` does not exist."
317314 ) ) ) ;
318315 } ;
319316
320317 if item. is_locked ( ) . await {
321318 return Err ( ServiceError :: IsLocked ( format ! (
322- "Cannot delete a locked item `{}`" ,
323- path
319+ "Cannot delete a locked item `{path}`"
324320 ) ) ) ;
325321 }
326322
0 commit comments