Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit bf0ed37

Browse files
committed
chore: satisfy clippy
Signed-off-by: William Woodruff <[email protected]>
1 parent 06c386c commit bf0ed37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ impl FromStr for LocalUses {
219219

220220
// TODO: Overly conservative? `uses: ./foo/bar@` might be valid if
221221
// `./foo/bar@/action.yml` exists.
222-
if git_ref.map_or(false, |git_ref| git_ref.is_empty()) {
222+
if git_ref.is_some_and(|git_ref| git_ref.is_empty()) {
223223
return Err(UsesError(format!(
224224
"local uses is missing git ref after '@': {uses}"
225225
)));

0 commit comments

Comments
 (0)