Skip to content

Commit d40fb2c

Browse files
jyn514Joshua Nelson
authored and
Joshua Nelson
committed
Fix 1.45 clippy warnings
These caused CI to fail for master because 1.45 was published between the CI run and the master run.
1 parent ec8b786 commit d40fb2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/docbuilder/crates.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::{fs, path::PathBuf, str::FromStr};
77

88
fn crates_from_file<F>(path: &PathBuf, func: &mut F) -> Result<()>
99
where
10-
F: FnMut(&str, &str) -> (),
10+
F: FnMut(&str, &str),
1111
{
1212
let reader = fs::File::open(path).map(BufReader::new)?;
1313

@@ -54,7 +54,7 @@ where
5454
if !name.is_empty() {
5555
versions.reverse();
5656
for version in versions {
57-
func(&name[..], &version[..]);
57+
func(&name, &version);
5858
}
5959
}
6060

@@ -63,7 +63,7 @@ where
6363

6464
pub fn crates_from_path<F>(path: &PathBuf, func: &mut F) -> Result<()>
6565
where
66-
F: FnMut(&str, &str) -> (),
66+
F: FnMut(&str, &str),
6767
{
6868
if !path.is_dir() {
6969
return Err(err_msg("Not a directory"));

0 commit comments

Comments
 (0)