diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-07 21:23:38 +0200 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-09 13:13:59 +0200 |
commit | 8b49cc933cbeda3e34420679288c4985abdc6059 (patch) | |
tree | 1085c523be09c55de07160356dd9182c6a99bf61 /ffi | |
parent | 253158696af836b4162fceadb29917f9eeb6d4a0 (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.rs | 2 |
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 = |