Skip to content

Commit 55d4647

Browse files
authored
Merge pull request #36 from asomers/clippy-11-sep-2022
Clippy cleanup
2 parents 256f8e8 + f3499af commit 55d4647

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.cirrus.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
freebsd_instance:
2-
image: freebsd-13-0-release-amd64
2+
image: freebsd-13-1-release-amd64
33

44
setup: &SETUP
55
env:
@@ -25,9 +25,9 @@ setup: &SETUP
2525
fingerprint_script: cat Cargo.lock || echo ""
2626

2727
task:
28-
name: FreeBSD 13.0 MSRV
28+
name: FreeBSD 13.1 MSRV
2929
env:
30-
VERSION: 1.49.0
30+
VERSION: 1.53.0
3131
<< : *SETUP
3232
test_script:
3333
- . $HOME/.cargo/env
@@ -38,7 +38,7 @@ task:
3838
before_cache_script: rm -rf $HOME/.cargo/registry/index
3939

4040
task:
41-
name: FreeBSD 13.0 nightly
41+
name: FreeBSD 13.1 nightly
4242
env:
4343
VERSION: nightly
4444
<< : *SETUP

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
- Updated Nix to 0.25.0
2424
(#[35](https://github.com/asomers/tokio-file/pull/35))
2525

26+
- Raised MSRV to 1.53.0
27+
(#[36](https://github.com/asomers/tokio-file/pull/36))
28+
2629
### Removed
2730

2831
- `readv_at` and `writev_at` now require at least FreeBSD 13.0, and they no

tests/file.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ mod dev {
225225
impl Drop for Md {
226226
fn drop(&mut self) {
227227
Command::new("mdconfig")
228-
.args(&["-d", "-u"])
228+
.args(["-d", "-u"])
229229
.arg(&self.0)
230230
.output()
231231
.expect("failed to deallocate md(4) device");
@@ -236,13 +236,13 @@ mod dev {
236236
fn md() -> Option<Md> {
237237
if Uid::current().is_root() {
238238
let output = Command::new("mdconfig")
239-
.args(&["-a", "-t", "swap", "-s", "1m"])
239+
.args(["-a", "-t", "swap", "-s", "1m"])
240240
.output()
241241
.expect("failed to allocate md(4) device");
242242
// Strip the trailing "\n"
243243
let l = output.stdout.len() - 1;
244244
let mddev = OsStr::from_bytes(&output.stdout[0..l]);
245-
Some(Md(Path::new("/dev").join(&mddev)))
245+
Some(Md(Path::new("/dev").join(mddev)))
246246
} else {
247247
None
248248
}

0 commit comments

Comments
 (0)