Skip to content

Commit

Permalink
chore: make clippy happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI committed Jun 19, 2024
1 parent 51c72c1 commit 4460475
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/bip32/src/xkeys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl AsRef<ecdsa::SigningKey> for XPriv {

impl XPriv {
/// Instantiate a new XPriv.
pub fn new(key: ecdsa::SigningKey, xkey_info: XKeyInfo) -> Self {
pub const fn new(key: ecdsa::SigningKey, xkey_info: XKeyInfo) -> Self {
Self { key, xkey_info }
}

Expand Down
2 changes: 1 addition & 1 deletion crates/ledger/src/transports/native/hid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ fn open_device(api: &HidApi, device: &DeviceInfo) -> Result<HidDevice, NativeTra

impl TransportNativeHID {
/// Instantiate from a device.
fn from_device(device: HidDevice) -> Self {
const fn from_device(device: HidDevice) -> Self {
Self {
device: Mutex::new(device),
}
Expand Down

0 comments on commit 4460475

Please sign in to comment.