diff options
Diffstat (limited to 'src/pinentry.rs')
-rw-r--r-- | src/pinentry.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pinentry.rs b/src/pinentry.rs index a215547..b9b3b11 100644 --- a/src/pinentry.rs +++ b/src/pinentry.rs @@ -75,7 +75,10 @@ async fn read_password< mut ncommands: u8, data: &mut [u8], mut r: R, -) -> Result<usize> { +) -> Result<usize> +where + R: Send, +{ let mut len = 0; loop { let nl = data.iter().take(len).position(|c| *c == b'\n'); |