Skip to content

Commit

Permalink
Remove unnecessary qualifications from Rust code
Browse files Browse the repository at this point in the history
These are qualifications that rust 1.76 (specified in
`rust-toolchain.toml` does not detect, but the latest version of Rust
detects and warns about.
  • Loading branch information
andiflabs committed Dec 2, 2024
1 parent b9bb244 commit 9dacf2e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions ironfish-rust/src/mining/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ impl Thread {
.name(id.to_string())
.spawn(move || {
let mut fish_hash_context = if fish_hash_options.enabled {
Some(fish_hash::Context::new(
fish_hash_options.full_context,
None,
))
Some(Context::new(fish_hash_options.full_context, None))
} else {
None
};
Expand Down
2 changes: 1 addition & 1 deletion ironfish-rust/src/transaction/mints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ impl MintDescription {
transfer_ownership_to = None;
}

let authorizing_signature = redjubjub::Signature::read(&mut reader)?;
let authorizing_signature = Signature::read(&mut reader)?;

Ok(MintDescription {
proof,
Expand Down
2 changes: 1 addition & 1 deletion ironfish-rust/src/transaction/spends.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ impl SpendDescription {
let tree_size = reader.read_u32::<LittleEndian>()?;
let mut nullifier = Nullifier([0; 32]);
reader.read_exact(&mut nullifier.0)?;
let authorizing_signature = redjubjub::Signature::read(&mut reader)?;
let authorizing_signature = Signature::read(&mut reader)?;

Ok(SpendDescription {
proof,
Expand Down
2 changes: 1 addition & 1 deletion ironfish-zkp/src/circuits/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ pub(crate) fn assert_valid_asset_generator<CS: ConstraintSystem<blstrs::Scalar>>
// Compare the generator bits to the computed generator bits, proving that
// this is the asset id that derived the generator
for i in 0..256 {
boolean::Boolean::enforce_equal(
Boolean::enforce_equal(
cs.namespace(|| format!("asset generator bit {} equality", i)),
&asset_generator_bits[i],
&asset_generator_repr[i],
Expand Down

0 comments on commit 9dacf2e

Please sign in to comment.