Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clippy cleanup and raise MSRV #44

Merged
merged 2 commits into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ setup: &SETUP
task:
name: FreeBSD 13.2 MSRV
env:
VERSION: 1.61.0
VERSION: 1.63.0
<< : *SETUP
test_script:
- . $HOME/.cargo/env
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
- Updated Nix to 0.26.1.
(#[38](https://github.com/asomers/tokio-file/pull/38))

- Raised MSRV to 1.61.0
- Raised MSRV to 1.63.0
(#[41](https://github.com/asomers/tokio-file/pull/41))
(#[44](https://github.com/asomers/tokio-file/pull/44))

### Removed

Expand Down
6 changes: 3 additions & 3 deletions tests/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fn new_nocreat() {
fn read_at() {
const WBUF: &[u8] = b"abcdef";
const EXPECT: &[u8] = b"cdef";
let mut rbuf = vec![0; 4];
let mut rbuf = [0; 4];
let off = 2;

let dir = t!(TempDir::new());
Expand All @@ -86,8 +86,8 @@ fn readv_at() {
const WBUF: &[u8] = b"abcdefghijklmnopqrwtuvwxyz";
const EXPECT0: &[u8] = b"cdef";
const EXPECT1: &[u8] = b"ghijklmn";
let mut rbuf0 = vec![0; 4];
let mut rbuf1 = vec![0; 8];
let mut rbuf0 = [0; 4];
let mut rbuf1 = [0; 8];
{
let mut rbufs = [IoSliceMut::new(&mut rbuf0[..]),
IoSliceMut::new(&mut rbuf1[..])];
Expand Down