Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanuppal committed Aug 28, 2024
1 parent 62060d6 commit 3f36461
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tools/calyx-ffi/src/backend/cider.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use calyx_ir::Context;
use core::panic;
use interp::{
flatten::{
flat_ir,
Expand All @@ -16,7 +15,8 @@ pub struct CiderFFIBackend {
}

impl CiderFFIBackend {
pub fn from(ctx: &Context, name: &'static str) -> Self {
pub fn from(ctx: &Context, _name: &'static str) -> Self {
// TODO(ethan, maybe griffin): use _name to select the component somehow
let ctx = flat_ir::translate(ctx);
let simulator = Simulator::build_simulator(Rc::new(ctx), &None)
.expect("we live on the edge");
Expand Down
2 changes: 1 addition & 1 deletion tools/calyx-ffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl CalyxFFI {
pub fn new_comp<T: CalyxFFIComponent + Default>(
&mut self,
) -> CalyxFFIComponentRef {
let mut comp = unsafe { T::default() };
let mut comp = T::default();
let path = comp.path();
let context = self.contexts.entry(path).or_insert_with_key(|path| {
// there has to be a better way to find lib
Expand Down
4 changes: 2 additions & 2 deletions tools/tb/examples/calyx/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ declare_calyx_interface! {
}

#[calyx_ffi(
src = "/Users/ethan/Documents/GitHub/calyx/tools/tb/examples/calyx/adder.futil",
src = "/home/runner/work/calyx/calyx/tools/tb/examples/calyx/adder.futil",
comp = "main",
backend = cider_ffi_backend,
derive = [
Expand All @@ -19,7 +19,7 @@ declare_calyx_interface! {
struct Adder;

#[calyx_ffi(
src = "/Users/ethan/Documents/GitHub/calyx/tools/tb/examples/calyx/subber.futil",
src = "/home/runner/work/calyx/calyx/tools/tb/examples/calyx/subber.futil",
comp = "main",
backend = cider_ffi_backend,
derive = [
Expand Down
2 changes: 1 addition & 1 deletion tools/tb/src/driver.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{
collections::HashMap,
fs, io,
io,
path::{Path, PathBuf},
};

Expand Down

0 comments on commit 3f36461

Please sign in to comment.