Skip to content

Commit

Permalink
Clippy fixes (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanorendorff authored Jul 24, 2023
1 parent b8521c7 commit fc892c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/chi_sq/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ fn main() -> Result<(), Error> {
println!("\t**********FHE************");
run_fhe(
chi_sq_fhe_program,
PhantomData::<Signed>::default(),
PhantomData::<Signed>,
n_0,
n_1,
n_2,
Expand All @@ -255,7 +255,7 @@ fn main() -> Result<(), Error> {
// just under 50ms...
run_fhe(
chi_sq_optimized_fhe_program,
PhantomData::<Signed>::default(),
PhantomData::<Signed>,
n_0,
n_1,
n_2,
Expand Down
4 changes: 1 addition & 3 deletions sunscreen_fhe_program/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,7 @@ impl FheProgramTrait for FheProgram {
closure_set.insert(mapped_id);
}

while !visit.is_empty() {
let node = visit.pop().expect("Fatal error: prune queue was empty.");

while let Some(node) = visit.pop() {
for edge in closure.neighbors(node) {
if !closure_set.contains(&edge) {
closure_set.insert(edge);
Expand Down
2 changes: 1 addition & 1 deletion sunscreen_runtime/src/serialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ where
"WithContext",
FIELDS,
WithContextVisitor {
marker: std::marker::PhantomData::default(),
marker: std::marker::PhantomData,
},
)
}
Expand Down

0 comments on commit fc892c1

Please sign in to comment.