Skip to content
Merged
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
15 changes: 4 additions & 11 deletions poseidon/src/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ enum Item {
U64(u64),
}

impl std::fmt::Debug for Item {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
impl core::fmt::Debug for Item {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
match self {
Self::Bool(arg0) => f.write_fmt(format_args!("{}_bool", i32::from(*arg0))),
Self::U2(arg0) => f.write_fmt(format_args!("{}_u2", arg0)),
Expand Down Expand Up @@ -64,8 +64,8 @@ impl Default for Inputs {
}
}

impl std::fmt::Debug for Inputs {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
impl core::fmt::Debug for Inputs {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
f.debug_struct("Inputs")
.field(&format!("fields[{:?}]", self.fields.len()), &self.fields)
.field(&format!("packeds[{:?}]", self.packeds.len()), &self.packeds)
Expand Down Expand Up @@ -146,13 +146,6 @@ impl Inputs {
}
}

// pub fn append<T>(&mut self, value: &T)
// where
// T: ToInputs,
// {
// value.to_inputs(self);
// }

#[allow(clippy::wrong_self_convention)]
pub fn to_fields(mut self) -> Vec<Fp> {
let mut nbits = 0;
Expand Down
Loading
Loading