Skip to content

Commit e582231

Browse files
committed
run clippy
1 parent 4557dcd commit e582231

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lazy-static-include"
3-
version = "3.1.2"
3+
version = "3.1.3"
44
authors = ["Magic Len <len@magiclen.org>"]
55
edition = "2021"
66
repository = "https://github.com/magiclen/lazy-static-include"

benches/bench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fn include_array_no_static(bencher: &mut Bencher) {
8282
let path = concat!(benchmark_text_path!());
8383

8484
bencher.iter(|| {
85-
let mut f = File::open(&path).unwrap();
85+
let mut f = File::open(path).unwrap();
8686

8787
let mut v = Vec::new();
8888

tests/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fn include_str() {
1010
pub TEST2 => "data/test-2.txt",
1111
}
1212

13-
let _data: &'static str = *TEST;
13+
let _data: &'static str = &TEST;
1414

1515
assert_eq!("This is just a test text.", TEST);
1616
assert_eq!("Some text...", TEST2);
@@ -23,7 +23,7 @@ fn include_bytes() {
2323
pub TEST2 => "data/test-2.txt",
2424
}
2525

26-
let _data: &'static [u8] = *TEST;
26+
let _data: &'static [u8] = &TEST;
2727

2828
assert_eq!("This is just a test text.".as_bytes(), TEST);
2929
assert_eq!("Some text...".as_bytes(), TEST2);

0 commit comments

Comments
 (0)