chore: fix clippy warnings for rust 1.94 & resolve typo check (#7352)

* chore: fix clippy warnings for rust 1.94

* chore: resolve typo warnings
This commit is contained in:
David Knaack
2026-04-03 19:49:11 +02:00
committed by GitHub
parent 8f9012b277
commit 402e9cac57
4 changed files with 7 additions and 9 deletions
+3 -3
View File
@@ -74,9 +74,9 @@ get_tmpfile() {
fi
}
# Test if a location is writeable by trying to write to it. Windows does not let
# Test if a location is writable by trying to write to it. Windows does not let
# you test writeability other than by writing: https://stackoverflow.com/q/1999988
test_writeable() {
test_writable() {
path="${1:-}/test.txt"
if touch "${path}" 2>/dev/null; then
rm "${path}"
@@ -188,7 +188,7 @@ elevate_priv() {
install() {
ext="$1"
if test_writeable "${BIN_DIR}"; then
if test_writable "${BIN_DIR}"; then
sudo=""
msg="Installing Starship, please wait…"
else