Skip to content

Commit 6ff2ff2

Browse files
authored
Merge pull request #118 from alexanderwiederin/verify-imports
Refactor(core): Standardize `std` imports in Verify module
2 parents da94931 + 4c8ad33 commit 6ff2ff2

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,
@@ -181,7 +184,7 @@ pub enum ScriptVerifyError {
181184
}
182185

183186
impl Display for ScriptVerifyError {
184-
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
187+
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
185188
match self {
186189
ScriptVerifyError::TxInputIndex => write!(f, "Transaction input index out of bounds"),
187190
ScriptVerifyError::InvalidFlags => write!(f, "Invalid verification flags"),
@@ -197,7 +200,7 @@ impl Display for ScriptVerifyError {
197200
}
198201
}
199202

200-
impl std::error::Error for ScriptVerifyError {}
203+
impl Error for ScriptVerifyError {}
201204

202205
#[cfg(test)]
203206
mod tests {

0 commit comments

Comments
 (0)