Skip to content

Commit

Permalink
clean warning
Browse files Browse the repository at this point in the history
  • Loading branch information
abenso committed Nov 18, 2024
1 parent db45877 commit fe4aaea
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions app/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ panic = "abort"

[features]
clippy = []
derive-debug = []

[patch.crates-io]
# decaf377 = { path = "../decaf377" }
Expand Down
3 changes: 1 addition & 2 deletions app/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ use poseidon377 as _;
use educe as _;
use arrayref as _;

// pub(crate) mod addr;
pub(crate) mod address;
mod bolos;
pub mod constants;
Expand Down Expand Up @@ -73,7 +72,7 @@ pub fn is_expert_mode() -> bool {
unsafe { app_mode_expert() > 0 }
}

#[cfg(any(test, fuzzing))]
#[cfg(any(test, feature = "fuzzing"))]
pub fn is_expert_mode() -> bool {
true
}
Expand Down
5 changes: 1 addition & 4 deletions app/rust/src/parser/parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
********************************************************************************/
use crate::{
effect_hash::{create_personalized_state, EffectHash},
ParserError,
};
use crate::effect_hash::{create_personalized_state, EffectHash};

use super::bytes::BytesC;

Expand Down
1 change: 1 addition & 0 deletions app/rust/src/parser/plans/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use crate::constants::ACTION_DATA_QTY;
#[repr(u8)]
pub enum ActionType {
Spend = 0,
Output = 1,
}

#[repr(C)]
Expand Down
1 change: 0 additions & 1 deletion app/rust/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ mod apdu_unwrap;
mod big_int;
pub mod prf;
use crate::ParserError;
pub use apdu_unwrap::*;
// pub use big_int::BigInt;
#[cfg(test)]
use std::vec::Vec;
Expand Down

0 comments on commit fe4aaea

Please sign in to comment.