Skip to content

Commit

Permalink
Lint fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
lvella committed Nov 10, 2023
1 parent a2d07b2 commit ce31e9f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions compiler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,7 @@ fn compile<T: FieldElement, Q: QueryCallback<T>>(
}

#[allow(clippy::print_stdout)]
pub fn inputs_to_query_callback<'a, T: FieldElement>(
inputs: &'a [T],
) -> impl Fn(&str) -> Option<T> + '_ {
pub fn inputs_to_query_callback<T: FieldElement>(inputs: &[T]) -> impl Fn(&str) -> Option<T> + '_ {
move |query: &str| -> Option<T> {
let items = query.split(',').map(|s| s.trim()).collect::<Vec<_>>();
match items[0] {
Expand Down

0 comments on commit ce31e9f

Please sign in to comment.