Skip to content

Commit c686cbb

Browse files
Fixes
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 7724cae commit c686cbb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/p11.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl Slot {
195195
}
196196

197197
pub fn check_user_password(&self, password: &str) -> Res<()> {
198-
let c_password = std::ffi::CString::new(password).map_err(|_| Error::String)?;
198+
let c_password = std::ffi::CString::new(password)?;
199199
secstatus_to_res(unsafe { PK11_CheckUserPassword(self.ptr, c_password.as_ptr()) })
200200
}
201201

0 commit comments

Comments
 (0)