Skip to content

Commit

Permalink
Handles clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
howardwu committed Aug 13, 2023
1 parent 929b303 commit 29c1161
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 30 deletions.
2 changes: 1 addition & 1 deletion console/account/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

pub use snarkvm_console_types::{environment::prelude::*, Address, Field, Group, Scalar};

pub mod address;
mod address;

#[cfg(feature = "compute_key")]
pub mod compute_key;
Expand Down
2 changes: 1 addition & 1 deletion synthesizer/program/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub use function::*;
mod import;
pub use import::*;

mod logic;
pub mod logic;
pub use logic::*;

mod mapping;
Expand Down
3 changes: 2 additions & 1 deletion synthesizer/program/src/traits/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
// limitations under the License.

use console::{
prelude::*,
network::Network,
prelude::{FromBytes, Parser, ToBytes},
program::{Identifier, Register},
};

Expand Down
6 changes: 5 additions & 1 deletion synthesizer/program/src/traits/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use console::{prelude::*, program::Register};
use console::{
network::Network,
prelude::{FromBytes, Parser, ToBytes},
program::Register,
};

pub trait InstructionTrait<N: Network>: Clone + Parser + FromBytes + ToBytes {
/// Returns the destination registers of the instruction.
Expand Down
4 changes: 2 additions & 2 deletions synthesizer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ pub mod prelude {
#[cfg(feature = "process")]
pub use crate::process::*;
#[cfg(feature = "program")]
pub use crate::program::*;
pub use crate::program::{Closure, Finalize, Function, Instruction, Mapping, Program};
#[cfg(feature = "snark")]
pub use crate::snark::*;
pub use crate::snark::{Certificate, Proof, ProvingKey, UniversalSRS, VerifyingKey};
#[cfg(all(feature = "process", feature = "program", feature = "snark"))]
pub use crate::vm::*;
}
24 changes: 0 additions & 24 deletions vm/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,31 +46,7 @@ pub use snarkvm_utilities as utilities;
#[cfg(feature = "wasm")]
pub use snarkvm_wasm as wasm;

pub mod errors {
#[cfg(feature = "algorithms")]
pub use crate::algorithms::errors::*;
#[cfg(feature = "curves")]
pub use crate::curves::errors::*;
#[cfg(feature = "fields")]
pub use crate::fields::errors::*;
#[cfg(feature = "parameters")]
pub use crate::parameters::errors::*;
#[cfg(feature = "r1cs")]
pub use crate::r1cs::errors::*;
}

pub mod traits {
#[cfg(feature = "algorithms")]
pub use crate::algorithms::traits::*;
#[cfg(feature = "curves")]
pub use crate::curves::traits::*;
#[cfg(feature = "fields")]
pub use crate::fields::traits::*;
}

pub mod prelude {
pub use crate::{errors::*, traits::*};

#[cfg(feature = "console")]
pub use crate::console::{account::*, network::*, program::*};
#[cfg(feature = "ledger")]
Expand Down

0 comments on commit 29c1161

Please sign in to comment.