Skip to content

Commit

Permalink
Fix rustc warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Varlakov <[email protected]>
  • Loading branch information
survived committed Oct 2, 2024
1 parent 95afc83 commit 0ff8ae9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions givre/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ pub mod key_share {
}

mod error {
// It's currently only needed in full signing, but better keep it always in the code
#![cfg_attr(not(feature = "full-signing"), allow(dead_code))]

#[cfg(feature = "std")]
pub use std::error::Error as StdError;

Expand Down
1 change: 1 addition & 0 deletions givre/src/signing/aggregate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ impl<'a, C: Ciphersuite> AggregateOptions<'a, C> {
///
/// CAUTION: additive shift MUST BE derived from the extended public key obtained from
/// the key share which is used for signing by calling [`utils::derive_additive_shift`].
#[cfg(feature = "hd-wallet")]
pub(crate) fn dangerous_set_hd_additive_shift(
mut self,
hd_additive_shift: Scalar<C::Curve>,
Expand Down
2 changes: 2 additions & 0 deletions givre/src/signing/round2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ impl<'a, C: Ciphersuite> SigningOptions<'a, C> {
///
/// CAUTION: additive shift MUST BE derived from the extended public key obtained from
/// the key share which is used for signing by calling [`utils::derive_additive_shift`].
#[cfg(feature = "hd-wallet")]
pub(crate) fn dangerous_set_hd_additive_shift(
mut self,
hd_additive_shift: Scalar<C::Curve>,
Expand Down Expand Up @@ -450,6 +451,7 @@ fn normalize_key_share<C: Ciphersuite>(
pub struct SigningError(Reason);

#[derive(Debug)]
#[cfg_attr(not(feature = "std"), allow(dead_code))]
enum Reason {
#[cfg(feature = "taproot")]
MissingTaprootMerkleRoot,
Expand Down

0 comments on commit 0ff8ae9

Please sign in to comment.