mirror of
https://github.com/AleoHQ/leo.git
synced 2024-09-22 04:27:25 +03:00
cargo clippy
This commit is contained in:
parent
0698f5df59
commit
f1bd5399a1
@ -65,7 +65,7 @@ impl Function {
|
|||||||
/// Returns `false` otherwise.
|
/// Returns `false` otherwise.
|
||||||
///
|
///
|
||||||
pub fn contains_self(&self) -> bool {
|
pub fn contains_self(&self) -> bool {
|
||||||
self.input.iter().find(|param| param.is_self()).is_some()
|
self.input.iter().any(|param| param.is_self())
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
@ -73,7 +73,7 @@ impl Function {
|
|||||||
/// Returns `false` otherwise.
|
/// Returns `false` otherwise.
|
||||||
///
|
///
|
||||||
pub fn contains_mut_self(&self) -> bool {
|
pub fn contains_mut_self(&self) -> bool {
|
||||||
self.input.iter().find(|param| param.is_mut_self()).is_some()
|
self.input.iter().any(|param| param.is_mut_self())
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
@ -25,6 +25,9 @@ use snarkos_models::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
impl<F: Field + PrimeField, G: GroupType<F>> ConstrainedProgram<F, G> {
|
impl<F: Field + PrimeField, G: GroupType<F>> ConstrainedProgram<F, G> {
|
||||||
|
/// Evaluates a branch of one or more statements and returns a result in
|
||||||
|
/// the given scope.
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn evaluate_branch<CS: ConstraintSystem<F>>(
|
pub fn evaluate_branch<CS: ConstraintSystem<F>>(
|
||||||
&mut self,
|
&mut self,
|
||||||
cs: &mut CS,
|
cs: &mut CS,
|
||||||
|
@ -135,7 +135,7 @@ impl FunctionType {
|
|||||||
/// Returns `false` otherwise.
|
/// Returns `false` otherwise.
|
||||||
///
|
///
|
||||||
pub fn contains_self(&self) -> bool {
|
pub fn contains_self(&self) -> bool {
|
||||||
self.inputs.iter().find(|param| param.is_self()).is_some()
|
self.inputs.iter().any(|param| param.is_self())
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user