Skip to content

Commit 66f68a7

Browse files
authored
Merge pull request #195 from laumann/dyn-keywords
Add dyn keywords
2 parents 2450720 + 44c6368 commit 66f68a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ impl TestProps {
400400
}
401401
}
402402

403-
fn iter_header(testfile: &Path, cfg: Option<&str>, it: &mut FnMut(&str)) {
403+
fn iter_header(testfile: &Path, cfg: Option<&str>, it: &mut dyn FnMut(&str)) {
404404
if testfile.is_dir() {
405405
return;
406406
}

src/read2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ mod imp {
4242

4343
pub fn read2(mut out_pipe: ChildStdout,
4444
mut err_pipe: ChildStderr,
45-
data: &mut FnMut(bool, &mut Vec<u8>, bool)) -> io::Result<()> {
45+
data: &mut dyn FnMut(bool, &mut Vec<u8>, bool)) -> io::Result<()> {
4646
unsafe {
4747
libc::fcntl(out_pipe.as_raw_fd(), libc::F_SETFL, libc::O_NONBLOCK);
4848
libc::fcntl(err_pipe.as_raw_fd(), libc::F_SETFL, libc::O_NONBLOCK);

0 commit comments

Comments
 (0)