]> git.proxmox.com Git - cargo.git/commitdiff
Fix compile error
authorbjorn3 <bjorn3@users.noreply.github.com>
Fri, 6 Aug 2021 18:10:26 +0000 (20:10 +0200)
committerbjorn3 <bjorn3@users.noreply.github.com>
Fri, 6 Aug 2021 18:10:26 +0000 (20:10 +0200)
src/cargo/util/toml/mod.rs

index 42851b9d4b6a34dd4e3a0901f565b6b4d3e2dc27..7c472bf8b2f1d54c90a9d3cbadd597d658d8a2cb 100644 (file)
@@ -566,7 +566,7 @@ impl TomlProfile {
 
         if let Some(codegen_backend) = &self.codegen_backend {
             features.require(Feature::codegen_backend())?;
-            if codegen_backend.contains(|c| !c.is_ascii_alphanumeric() && c != '_') {
+            if codegen_backend.contains(|c: char| !c.is_ascii_alphanumeric() && c != '_') {
                 bail!(
                     "`profile.{}.codegen-backend` setting of `{}` is not a valid backend name.",
                     name,