Skip to content

Commit

Permalink
Clean up the check for absence of toolchain.default_edition
Browse files Browse the repository at this point in the history
Co-authored-by: UebelAndre <github@uebelandre.com>
  • Loading branch information
dtolnay and UebelAndre committed Apr 13, 2022
1 parent a723865 commit 1da7a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/private/rust.bzl
Expand Up @@ -119,7 +119,7 @@ def get_edition(attr, toolchain, label):
"""
if getattr(attr, "edition"):
return attr.edition
elif toolchain.default_edition == "":
elif not toolchain.default_edition:
fail("Attribute `edition` is required for {}.".format(label))
else:
return toolchain.default_edition
Expand Down

0 comments on commit 1da7a69

Please sign in to comment.