Skip to content

Commit 70c45a1

Browse files
committed
Rename readme variable to build
1 parent 43f6b58 commit 70c45a1

File tree

1 file changed

+2
-2
lines changed
  • crates/cargo-util-schemas/src/manifest

1 file changed

+2
-2
lines changed

crates/cargo-util-schemas/src/manifest/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ impl TomlPackage {
264264
}
265265

266266
pub fn normalized_build(&self) -> Result<Option<&String>, UnresolvedError> {
267-
let readme = self.build.as_ref().ok_or(UnresolvedError)?;
268-
match readme {
267+
let build = self.build.as_ref().ok_or(UnresolvedError)?;
268+
match build {
269269
TomlPackageBuild::SingleScript(StringOrBool::Bool(false)) => Ok(None),
270270
TomlPackageBuild::SingleScript(StringOrBool::Bool(true)) => Err(UnresolvedError),
271271
TomlPackageBuild::SingleScript(StringOrBool::String(value)) => Ok(Some(value)),

0 commit comments

Comments
 (0)