Skip to content

Commit 27103c8

Browse files
committed
rust: remove TryFrom/TryInto imports
Not neede as of the 2021 edition: https://doc.rust-lang.org/edition-guide/rust-2021/prelude.html
1 parent abb0a55 commit 27103c8

File tree

14 files changed

+0
-25
lines changed

14 files changed

+0
-25
lines changed

src/rust/bitbox02-rust/src/hww/api/bitcoin.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ use pb::BtcCoin;
4646
use pb::BtcScriptConfig;
4747

4848
use alloc::string::String;
49-
use core::convert::TryFrom;
50-
use core::convert::TryInto;
5149

5250
/// Like `hww::next_request`, but for Bitcoin requests/responses.
5351
pub async fn next_request(response: pb::btc_response::Response) -> Result<Request, Error> {

src/rust/bitbox02-rust/src/hww/api/bitcoin/common.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ use crate::xpubcache::Bip32XpubCache;
1919

2020
use alloc::string::String;
2121
use alloc::vec::Vec;
22-
use core::convert::TryFrom;
2322

2423
use pb::btc_script_config::SimpleType;
2524
pub use pb::btc_sign_init_request::FormatUnit;

src/rust/bitbox02-rust/src/hww/api/bitcoin/multisig.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ use crate::workflow::confirm;
2626

2727
use alloc::string::String;
2828
use alloc::vec::Vec;
29-
use core::convert::TryFrom;
30-
use core::convert::TryInto;
3129

3230
use sha2::{Digest, Sha256};
3331

src/rust/bitbox02-rust/src/hww/api/bitcoin/registration.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ use pb::btc_response::Response;
2323
use pb::btc_script_config::Config;
2424
use pb::BtcCoin;
2525

26-
use core::convert::TryFrom;
27-
2826
use super::multisig::SortXpubs;
2927

3028
use crate::workflow::{confirm, status, trinary_input_string};

src/rust/bitbox02-rust/src/hww/api/bitcoin/signmsg.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
// limitations under the License.
1414

1515
use alloc::vec::Vec;
16-
use core::convert::TryFrom;
17-
use core::convert::TryInto;
1816

1917
use sha2::{Digest, Sha256};
2018

src/rust/bitbox02-rust/src/hww/api/bitcoin/signtx.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ use crate::workflow::{confirm, status, transaction};
2323
use crate::xpubcache::Bip32XpubCache;
2424

2525
use alloc::vec::Vec;
26-
use core::convert::TryFrom;
27-
use core::convert::TryInto;
2826

2927
use pb::request::Request;
3028
use pb::response::Response;

src/rust/bitbox02-rust/src/hww/api/cardano/address.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ use super::Error;
1717

1818
use alloc::string::String;
1919
use alloc::vec::Vec;
20-
use core::convert::TryFrom;
2120

2221
use crate::workflow::confirm;
2322

src/rust/bitbox02-rust/src/hww/api/cardano/sign_transaction.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use super::Error;
2020

2121
use alloc::string::String;
2222
use alloc::vec::Vec;
23-
use core::convert::TryFrom;
2423

2524
use blake2::{
2625
digest::{Update, VariableOutput},

src/rust/bitbox02-rust/src/hww/api/cardano/sign_transaction/cbor.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ use super::super::pb;
1717
use super::super::Error;
1818

1919
use alloc::vec::Vec;
20-
use core::convert::TryFrom;
2120

2221
use digest::Update;
2322
use minicbor::encode::{Encoder, Write};

src/rust/bitbox02-rust/src/hww/api/ethereum/pubrequest.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ use crate::bip32;
2222
use crate::keystore;
2323
use crate::workflow::confirm;
2424

25-
use core::convert::TryFrom;
26-
use core::convert::TryInto;
27-
2825
async fn process_address(request: &pb::EthPubRequest) -> Result<Response, Error> {
2926
let coin = pb::EthCoin::try_from(request.coin)?;
3027

0 commit comments

Comments
 (0)