File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 33
33
//!
34
34
//! Works perfectly in conjunction with `openpgp-card-agent.rs`!
35
35
36
- use std:: { cell:: RefCell , pin :: Pin } ;
36
+ use std:: cell:: RefCell ;
37
37
38
38
use chrono:: DateTime ;
39
39
use clap:: Parser ;
@@ -55,11 +55,11 @@ use tokio::runtime::Runtime;
55
55
struct WrappedKey {
56
56
public_key : PublicKey ,
57
57
pubkey : KeyData ,
58
- client : RefCell < Pin < Box < dyn Session > > > ,
58
+ client : RefCell < Box < dyn Session > > ,
59
59
}
60
60
61
61
impl WrappedKey {
62
- fn new ( pubkey : KeyData , client : Pin < Box < dyn Session > > ) -> Self {
62
+ fn new ( pubkey : KeyData , client : Box < dyn Session > ) -> Self {
63
63
let KeyData :: Ed25519 ( key) = pubkey. clone ( ) else {
64
64
panic ! ( "The first key was not ed25519!" ) ;
65
65
} ;
@@ -206,11 +206,11 @@ fn main() -> testresult::TestResult {
206
206
let ( client, identities) = rt. block_on ( async move {
207
207
#[ cfg( unix) ]
208
208
let mut client =
209
- connect ( Binding :: FilePath ( std:: env:: var ( "SSH_AUTH_SOCK" ) ?. into ( ) ) . try_into ( ) ?) . await ?;
209
+ connect ( Binding :: FilePath ( std:: env:: var ( "SSH_AUTH_SOCK" ) ?. into ( ) ) . try_into ( ) ?) ?;
210
210
211
211
#[ cfg( windows) ]
212
212
let mut client =
213
- connect ( Binding :: NamedPipe ( std:: env:: var ( "SSH_AUTH_SOCK" ) ?. into ( ) ) . try_into ( ) ?) . await ?;
213
+ connect ( Binding :: NamedPipe ( std:: env:: var ( "SSH_AUTH_SOCK" ) ?. into ( ) ) . try_into ( ) ?) ?;
214
214
215
215
let identities = client. request_identities ( ) . await ?;
216
216
You can’t perform that action at this time.
0 commit comments