summaryrefslogtreecommitdiffstats
path: root/ffi
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-04-07 21:23:38 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2021-04-09 13:13:59 +0200
commit8b49cc933cbeda3e34420679288c4985abdc6059 (patch)
tree1085c523be09c55de07160356dd9182c6a99bf61 /ffi
parent253158696af836b4162fceadb29917f9eeb6d4a0 (diff)
Lint: Use get() instead of iter().next().
- https://rust-lang.github.io/rust-clippy/master/index.html#iter_next_slice
Diffstat (limited to 'ffi')
-rw-r--r--ffi/tests/c-tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffi/tests/c-tests.rs b/ffi/tests/c-tests.rs
index 178ddfc1..fbca0600 100644
--- a/ffi/tests/c-tests.rs
+++ b/ffi/tests/c-tests.rs
@@ -221,7 +221,7 @@ fn build(include_dirs: &[PathBuf], ldpath: &Path, target_dir: &Path,
// rust source.
use filetime::FileTime;
let mtime = FileTime::from_last_modification_time(&meta_rs);
- filetime::set_file_times(target_c, mtime.clone(), mtime).unwrap();
+ filetime::set_file_times(target_c, mtime, mtime).unwrap();
}
let includes =