Skip to content

Commit c11c97f

Browse files
committed
Address new clippy lints
1 parent 3352dc7 commit c11c97f

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

src/base.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
#![allow(clippy::needless_lifetimes, clippy::unnecessary_wraps)] // starlark weirdness
1+
#![allow(
2+
clippy::needless_lifetimes,
3+
clippy::unnecessary_wraps,
4+
clippy::elidable_lifetime_names
5+
)] // starlark weirdness
26

37
use std::io::Read;
48

@@ -119,8 +123,9 @@ pub fn base(builder: &mut GlobalsBuilder) {
119123
.unwrap();
120124

121125
Ok(FileContents {
122-
contents: std::fs::read(&extracted_path)
123-
.with_context(|| format!("{extracted_path:?} not found in archive at {url}"))?,
126+
contents: std::fs::read(&extracted_path).with_context(|| {
127+
format!("{} not found in archive at {url}", extracted_path.display())
128+
})?,
124129
})
125130
}
126131

src/github.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
#![allow(clippy::needless_lifetimes, clippy::unnecessary_wraps)] // starlark weirdness
1+
#![allow(
2+
clippy::needless_lifetimes,
3+
clippy::unnecessary_wraps,
4+
clippy::elidable_lifetime_names
5+
)] // starlark weirdness
26

37
use allocative::Allocative;
48
use starlark::environment::{GlobalsBuilder, Methods, MethodsBuilder, MethodsStatic};

0 commit comments

Comments
 (0)