Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Address grumbles
Browse files Browse the repository at this point in the history
* &Arc<Manager> -> &Manager
* Rustdoc -> Crate doc
  • Loading branch information
niklasad1 committed Jun 14, 2018
1 parent 251aaad commit a194156
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hw/src/ledger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// along with Parity. If not, see <http://www.gnu.org/licenses/>.

//! Ledger hardware wallet module. Supports Ledger Blue and Nano S.
/// See <https://github.com/LedgerHQ/blue-app-eth/blob/master/doc/ethapp.asc> for protocol details.
//! See <https://github.com/LedgerHQ/blue-app-eth/blob/master/doc/ethapp.asc> for protocol details.

use std::cmp::min;
use std::str::FromStr;
Expand Down Expand Up @@ -364,7 +364,7 @@ impl Manager {
}

// Try to connect to the device using polling in at most the time specified by the `timeout`
fn try_connect_polling(ledger: &Arc<Manager>, timeout: &Duration, device_direction: DeviceDirection) -> bool {
fn try_connect_polling(ledger: &Manager, timeout: &Duration, device_direction: DeviceDirection) -> bool {
let start_time = Instant::now();
while start_time.elapsed() <= *timeout {
if let Ok(num_devices) = ledger.update_devices(device_direction) {
Expand Down
2 changes: 1 addition & 1 deletion hw/src/trezor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ impl <'a>Wallet<'a> for Manager {
}

// Try to connect to the device using polling in at most the time specified by the `timeout`
fn try_connect_polling(trezor: &Arc<Manager>, duration: &Duration, dir: DeviceDirection) -> bool {
fn try_connect_polling(trezor: &Manager, duration: &Duration, dir: DeviceDirection) -> bool {
let start_time = Instant::now();
while start_time.elapsed() <= *duration {
if let Ok(num_devices) = trezor.update_devices(dir) {
Expand Down

0 comments on commit a194156

Please sign in to comment.