Skip to content

Commit

Permalink
fix new clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed May 22, 2024
1 parent 5f440b2 commit fa4c5f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ homepage = "https://laze-build.org"
license = "Apache-2.0"
readme = "README.md"
include = ["src/**/*", "LICENSE", "README.md", "CHANGELOG.md", "!**/tests/**/*", "assets/**/*"]
rust-version = "1.64.0" # MSRV (clap needs recent Rust)
rust-version = "1.70.0"

[dependencies]
anyhow = "1.0.86"
Expand Down
2 changes: 1 addition & 1 deletion src/data/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub trait Import: std::hash::Hash {
let mut res = Utf8PathBuf::from(build_dir.as_ref());
res.push("imports");
if let Some(dldir) = self.get_dldir() {
res.push(format!("{dldir}"));
res.push(dldir);
} else if let Some(name) = self.get_name() {
res.push(format!("{name}-{source_hash}"));
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/nested_env/expand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ where
.map_err(ExpandError::Expr))?
}

fn expand_recursive<'a, SI: 'a, H>(
fn expand_recursive<'a, SI, H>(
f: SI,
r: &HashMap<&String, String, H>,
seen: Vec<&'a str>,
if_missing: IfMissing,
) -> Result<String, ExpandError>
where
SI: AsRef<str>,
SI: 'a + AsRef<str>,
H: std::hash::BuildHasher,
{
let f = f.as_ref();
Expand Down

0 comments on commit fa4c5f2

Please sign in to comment.