Skip to content

Commit

Permalink
fix passing no arguments to rustdoc-clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo157 committed Apr 5, 2023
1 parent 06920f0 commit aeaa138
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/cargo-rustdoc-clippy
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,10 @@ then

CLIPPYFLAGS="${(j:\x1E:)clippy_args}" RUSTDOCFLAGS="--no-run --nocapture --test-builder "$0" -Z unstable-options $rustdoc_args[@]" exec cargo test --doc "$cargo_args[@]"
else
exec clippy-driver "${(@s:\x1E:)CLIPPYFLAGS}" "$@"
if [[ "$CLIPPYFLAGS" != "" ]]
then
exec clippy-driver "${(@s:\x1E:)CLIPPYFLAGS}" "$@"
else
exec clippy-driver "$@"
fi
fi

0 comments on commit aeaa138

Please sign in to comment.