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 /openpgp-ffi/tests | |
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 'openpgp-ffi/tests')
-rw-r--r-- | openpgp-ffi/tests/c-tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp-ffi/tests/c-tests.rs b/openpgp-ffi/tests/c-tests.rs index bdaf2317..7a75a9d6 100644 --- a/openpgp-ffi/tests/c-tests.rs +++ b/openpgp-ffi/tests/c-tests.rs @@ -220,7 +220,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 = |