Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unneeded Debug trait requirement from BasicSnippet and DeprecatedSnippet #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion tasm-lib/src/list/higher_order/all.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ use super::inner_function::InnerFunction;

/// Runs a predicate over all elements of a list and returns true only if all elements satisfy the
/// predicate.
#[derive(Debug)]
pub struct All {
pub f: InnerFunction,
}
Expand Down
1 change: 0 additions & 1 deletion tasm-lib/src/list/higher_order/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ use super::inner_function::InnerFunction;
/// Filters a given list for elements that satisfy a predicate. A new
/// list is created, containing only those elements that satisfy the
/// predicate. The predicate must be given as an InnerFunction.
#[derive(Debug)]
pub struct Filter {
pub f: InnerFunction,
}
Expand Down
1 change: 0 additions & 1 deletion tasm-lib/src/list/higher_order/inner_function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ impl RawCode {
}
}

#[derive(Debug)]
pub enum InnerFunction {
RawCode(RawCode),
DeprecatedSnippet(Box<dyn DeprecatedSnippet>),
Expand Down
1 change: 0 additions & 1 deletion tasm-lib/src/list/higher_order/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ currently only works with *one* input element. Use a tuple data type to circumve

/// Applies a given function to every element of a list, and collects the new elements
/// into a new list.
#[derive(Debug)]
pub struct Map {
pub f: InnerFunction,
}
Expand Down
3 changes: 1 addition & 2 deletions tasm-lib/src/traits/basic_snippet.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
use num_traits::Zero;
use std::fmt::Debug;
use triton_vm::op_stack::NUM_OP_STACK_REGISTERS;
use triton_vm::prelude::*;

use crate::data_type::DataType;
use crate::library::Library;
use crate::VmHasher;

pub trait BasicSnippet: Debug {
pub trait BasicSnippet {
fn inputs(&self) -> Vec<(DataType, String)>;
fn outputs(&self) -> Vec<(DataType, String)>;
fn entrypoint(&self) -> String;
Expand Down
3 changes: 1 addition & 2 deletions tasm-lib/src/traits/deprecated_snippet.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::cell::RefCell;
use std::collections::HashMap;
use std::fmt::Debug;
use std::rc::Rc;

use anyhow::Result;
Expand All @@ -24,7 +23,7 @@ use crate::DIGEST_LENGTH;
use super::basic_snippet::BasicSnippet;
use super::rust_shadow::RustShadow;

pub trait DeprecatedSnippet: Debug {
pub trait DeprecatedSnippet {
/// The name of a Snippet
///
/// This is used as a unique identifier, e.g. when generating labels.
Expand Down
Loading