We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43f6b58 commit 70c45a1Copy full SHA for 70c45a1
crates/cargo-util-schemas/src/manifest/mod.rs
@@ -264,8 +264,8 @@ impl TomlPackage {
264
}
265
266
pub fn normalized_build(&self) -> Result<Option<&String>, UnresolvedError> {
267
- let readme = self.build.as_ref().ok_or(UnresolvedError)?;
268
- match readme {
+ let build = self.build.as_ref().ok_or(UnresolvedError)?;
+ match build {
269
TomlPackageBuild::SingleScript(StringOrBool::Bool(false)) => Ok(None),
270
TomlPackageBuild::SingleScript(StringOrBool::Bool(true)) => Err(UnresolvedError),
271
TomlPackageBuild::SingleScript(StringOrBool::String(value)) => Ok(Some(value)),
0 commit comments