@@ -35,33 +35,33 @@ pub use validation::ValidationFlagsType;
3535/// threads. A Session needs to be created in its own thread or to be passed by ownership to
3636/// another thread.
3737#[ derive( Debug ) ]
38- pub struct Session < ' a > {
38+ pub struct Session {
3939 handle : CK_SESSION_HANDLE ,
40- client : & ' a Pkcs11 ,
40+ client : Pkcs11 ,
4141 // This is not used but to prevent Session to automatically implement Send and Sync
4242 _guard : PhantomData < * mut u32 > ,
4343}
4444
45- impl < ' a > std:: fmt:: Display for Session < ' a > {
45+ impl std:: fmt:: Display for Session {
4646 fn fmt ( & self , f : & mut Formatter < ' _ > ) -> std:: fmt:: Result {
4747 write ! ( f, "{}" , self . handle)
4848 }
4949}
5050
51- impl < ' a > std:: fmt:: LowerHex for Session < ' a > {
51+ impl std:: fmt:: LowerHex for Session {
5252 fn fmt ( & self , f : & mut Formatter < ' _ > ) -> std:: fmt:: Result {
5353 write ! ( f, "{:08x}" , self . handle)
5454 }
5555}
5656
57- impl < ' a > std:: fmt:: UpperHex for Session < ' a > {
57+ impl std:: fmt:: UpperHex for Session {
5858 fn fmt ( & self , f : & mut Formatter < ' _ > ) -> std:: fmt:: Result {
5959 write ! ( f, "{:08X}" , self . handle)
6060 }
6161}
6262
63- impl < ' a > Session < ' a > {
64- pub ( crate ) fn new ( handle : CK_SESSION_HANDLE , client : & ' a Pkcs11 ) -> Self {
63+ impl Session {
64+ pub ( crate ) fn new ( handle : CK_SESSION_HANDLE , client : Pkcs11 ) -> Self {
6565 Session {
6666 handle,
6767 client,
@@ -70,7 +70,7 @@ impl<'a> Session<'a> {
7070 }
7171}
7272
73- impl < ' a > Session < ' a > {
73+ impl Session {
7474 /// Close a session
7575 /// This will be called on drop as well.
7676 pub fn close ( self ) -> Result < ( ) > {
@@ -83,7 +83,7 @@ impl<'a> Session<'a> {
8383 }
8484
8585 pub ( crate ) fn client ( & self ) -> & Pkcs11 {
86- self . client
86+ & self . client
8787 }
8888}
8989
0 commit comments