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 84709f0 commit 93fd488Copy full SHA for 93fd488
crates/cargo-util-schemas/src/manifest/mod.rs
@@ -255,8 +255,8 @@ impl TomlPackage {
255
}
256
257
pub fn normalized_build(&self) -> Result<Option<&String>, UnresolvedError> {
258
- let readme = self.build.as_ref().ok_or(UnresolvedError)?;
259
- match readme {
+ let build = self.build.as_ref().ok_or(UnresolvedError)?;
+ match build {
260
StringOrBool::Bool(false) => Ok(None),
261
StringOrBool::Bool(true) => Err(UnresolvedError),
262
StringOrBool::String(value) => Ok(Some(value)),
0 commit comments