-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor - Demotes Arc
to Rc
.
#32982
Conversation
02b36da
to
d23f429
Compare
Sorry @brooksprumo, forgot to run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
@@ -98,8 +99,8 @@ pub struct RemoteWalletManager { | |||
impl RemoteWalletManager { | |||
/// Create a new instance. | |||
#[cfg(feature = "hidapi")] | |||
pub fn new(usb: Arc<Mutex<hidapi::HidApi>>) -> Arc<Self> { | |||
Arc::new(Self { | |||
pub fn new(usb: Arc<Mutex<hidapi::HidApi>>) -> Rc<Self> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potentially we should have been returning some sort of type aliased thing here?
That way we wouldn't have had so many changes from Arc -> Rc
5f92e45
to
8134f6a
Compare
8134f6a
to
b437b74
Compare
Codecov Report
@@ Coverage Diff @@
## master #32982 +/- ##
=======================================
Coverage 81.9% 82.0%
=======================================
Files 784 784
Lines 212715 212715
=======================================
+ Hits 174426 174431 +5
+ Misses 38289 38284 -5 |
Problem
Another preparation for #32961.
Future versions of clippy will complain that:
Summary of Changes
Demotes
Arc
toRc
aroundRemoteWalletManager
,LedgerWallet
andTransactionAccounts
.