Skip to content

Commit 93fd488

Browse files
committed
Rename readme variable to build
1 parent 84709f0 commit 93fd488

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
@@ -255,8 +255,8 @@ impl TomlPackage {
255255
}
256256

257257
pub fn normalized_build(&self) -> Result<Option<&String>, UnresolvedError> {
258-
let readme = self.build.as_ref().ok_or(UnresolvedError)?;
259-
match readme {
258+
let build = self.build.as_ref().ok_or(UnresolvedError)?;
259+
match build {
260260
StringOrBool::Bool(false) => Ok(None),
261261
StringOrBool::Bool(true) => Err(UnresolvedError),
262262
StringOrBool::String(value) => Ok(Some(value)),

0 commit comments

Comments
 (0)