Skip to content

Commit 4c8ad33

Browse files
refactor(core): standardize std imports in verify module
1 parent 3e41d2c commit 4c8ad33

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/core/verify.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
use std::fmt::{Display, Formatter};
1+
use std::{
2+
error::Error,
3+
fmt::{self, Display, Formatter},
4+
};
25

36
use libbitcoinkernel_sys::{
47
btck_ScriptVerificationFlags, btck_ScriptVerifyStatus, btck_TransactionOutput,
@@ -183,7 +186,7 @@ pub enum ScriptVerifyError {
183186
}
184187

185188
impl Display for ScriptVerifyError {
186-
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
189+
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
187190
match self {
188191
ScriptVerifyError::TxInputIndex => write!(f, "Transaction input index out of bounds"),
189192
ScriptVerifyError::TxSizeMismatch => write!(f, "Transaction size mismatch"),
@@ -201,7 +204,7 @@ impl Display for ScriptVerifyError {
201204
}
202205
}
203206

204-
impl std::error::Error for ScriptVerifyError {}
207+
impl Error for ScriptVerifyError {}
205208

206209
#[cfg(test)]
207210
mod tests {

0 commit comments

Comments
 (0)