Skip to content

Commit

Permalink
Merge pull request #558 from notgull/sample-fn
Browse files Browse the repository at this point in the history
Make samples_main take an Fn trait
  • Loading branch information
derekdreery committed Jun 21, 2023
2 parents 1d8a6fd + 2a56608 commit 24acaf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piet/src/samples/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ struct Args {
/// testing environment, such as the versions of various dependencies; this
/// will be appended to the GENERATED_BY file.
pub fn samples_main(
f: fn(usize, f64, &Path) -> Result<(), BoxErr>,
f: impl Fn(usize, f64, &Path) -> Result<(), BoxErr>,
prefix: &str,
env_info: Option<&str>,
) -> ! {
Expand Down

0 comments on commit 24acaf6

Please sign in to comment.