Skip to content

Commit

Permalink
Merge pull request ProvableHQ#8287 from AleoHQ/cleanup
Browse files Browse the repository at this point in the history
Cleanup.
  • Loading branch information
d0cd authored Dec 19, 2023
2 parents ab410e3 + 4730bb0 commit 46d539a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
16 changes: 8 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ commands:
jobs:
check-style:
docker:
- image: cimg/rust:1.71
- image: cimg/rust:1.74
resource_class: xlarge
steps:
- checkout
Expand All @@ -66,7 +66,7 @@ jobs:

clippy:
docker:
- image: cimg/rust:1.71
- image: cimg/rust:1.74
resource_class: xlarge
steps:
- checkout
Expand All @@ -83,7 +83,7 @@ jobs:

leo-executable:
docker:
- image: cimg/rust:1.71
- image: cimg/rust:1.74
resource_class: xlarge
steps:
- checkout
Expand All @@ -102,7 +102,7 @@ jobs:

leo-new:
docker:
- image: cimg/rust:1.71
- image: cimg/rust:1.74
resource_class: xlarge
steps:
- attach_workspace:
Expand All @@ -111,11 +111,11 @@ jobs:
name: leo new
command: |
export LEO=/home/circleci/project/project/bin/leo
./project/.circleci/leo-new.sh
timeout 30m ./project/.circleci/leo-new.sh
leo-clean:
docker:
- image: cimg/rust:1.71
- image: cimg/rust:1.74
resource_class: xlarge
steps:
- attach_workspace:
Expand All @@ -128,7 +128,7 @@ jobs:
leo-example:
docker:
- image: cimg/rust:1.71
- image: cimg/rust:1.74
resource_class: xlarge
steps:
- attach_workspace:
Expand All @@ -141,7 +141,7 @@ jobs:
test-examples:
docker:
- image: cimg/rust:1.71
- image: cimg/rust:1.74
resource_class: xlarge
steps:
- attach_workspace:
Expand Down
7 changes: 1 addition & 6 deletions compiler/ast/src/functions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub mod mode;
pub use mode::*;

use crate::{Block, Identifier, Node, NodeID, TupleType, Type};
use leo_span::{sym, Span, Symbol};
use leo_span::{Span, Symbol};

use serde::{Deserialize, Serialize};
use std::fmt;
Expand Down Expand Up @@ -111,11 +111,6 @@ impl Function {
self.identifier.name
}

/// Returns `true` if the function name is `main`.
pub fn is_main(&self) -> bool {
self.name() == sym::main
}

///
/// Private formatting method used for optimizing [fmt::Debug] and [fmt::Display] implementations.
///
Expand Down
2 changes: 2 additions & 0 deletions compiler/ast/src/value/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ macro_rules! implement_const_unary {
) => {
// TODO: This is temporary since the currently unused code is used in constant folding.
#[allow(dead_code)]
#[allow(clippy::redundant_closure_call)]
pub(crate) fn $name(self, span: Span) -> Result<Self> {
use Value::*;

Expand Down Expand Up @@ -159,6 +160,7 @@ macro_rules! implement_const_binary {
) => {
// This is temporary since the currently unused code is used in constant folding.
#[allow(dead_code)]
#[allow(clippy::redundant_closure_call)]
pub(crate) fn $name(self, other: Self, span: Span) -> Result<Self> {
use Value::*;

Expand Down
2 changes: 1 addition & 1 deletion compiler/passes/src/destructuring/destructure_statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ impl StatementReconstructor for Destructurer<'_> {
let statements = lhs_tuple
.elements
.into_iter()
.zip_eq(rhs_tuple.elements.into_iter())
.zip_eq(rhs_tuple.elements)
.map(|(lhs, rhs)| {
// Get the type of the rhs.
let type_ = match self.type_table.get(&lhs.id()) {
Expand Down

0 comments on commit 46d539a

Please sign in to comment.