mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 23:23:50 +03:00
clippy
This commit is contained in:
parent
1ac7f7f67c
commit
e47ddb458e
@ -17,7 +17,7 @@
|
||||
use crate::{Location, Type};
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::{fmt};
|
||||
use std::fmt;
|
||||
|
||||
/// A future type consisting of the type of the inputs.
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||
|
@ -115,8 +115,7 @@ impl ParserContext<'_> {
|
||||
|
||||
// Parse the body of the program scope.
|
||||
let mut consts: Vec<(Symbol, ConstDeclaration)> = Vec::new();
|
||||
let (mut transitions, mut functions): (Vec<(Symbol, Function)>, Vec<(Symbol, Function)>) =
|
||||
(Vec::new(), Vec::new());
|
||||
let (mut transitions, mut functions) = (Vec::new(), Vec::new());
|
||||
let mut structs: Vec<(Symbol, Composite)> = Vec::new();
|
||||
let mut mappings: Vec<(Symbol, Mapping)> = Vec::new();
|
||||
|
||||
|
@ -33,7 +33,6 @@ use leo_ast::{
|
||||
LocatorExpression,
|
||||
MemberAccess,
|
||||
MethodCall,
|
||||
Node,
|
||||
StructExpression,
|
||||
TernaryExpression,
|
||||
TupleExpression,
|
||||
|
@ -18,7 +18,7 @@ pub mod assigner;
|
||||
pub use assigner::*;
|
||||
|
||||
pub mod tree_node;
|
||||
pub use tree_node::*;
|
||||
pub use tree_node::ConditionalTreeNode;
|
||||
|
||||
pub mod graph;
|
||||
pub use graph::*;
|
||||
|
@ -28,7 +28,6 @@ use leo_ast::{
|
||||
Type,
|
||||
};
|
||||
|
||||
|
||||
impl ExpressionReconstructor for Destructurer<'_> {
|
||||
type AdditionalOutput = Vec<Statement>;
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
use crate::{ConditionalTreeNode, TreeNode};
|
||||
use crate::{ConditionalTreeNode};
|
||||
use indexmap::IndexSet;
|
||||
use leo_ast::Identifier;
|
||||
use leo_errors::TypeCheckerWarning;
|
||||
@ -55,7 +55,7 @@ impl AwaitChecker {
|
||||
if futures.is_empty() {
|
||||
self.to_await = Vec::new();
|
||||
} else {
|
||||
self.to_await = vec![TreeNode::new(futures.clone())];
|
||||
self.to_await = vec![ConditionalTreeNode::new(futures.clone())];
|
||||
}
|
||||
self.static_to_await = futures;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user