Skip to content

Commit

Permalink
chore: remove npx references
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodenadai committed Feb 21, 2024
1 parent e1244e4 commit c1cbca4
Show file tree
Hide file tree
Showing 5 changed files with 218 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

[ -n "$CI" ] && exit 0

[[ -n $HUSKY_BYPASS ]] || npx --no -- commitlint --edit $1
[[ -n $HUSKY_BYPASS ]] || yarn commitlint --edit $1
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

[ -n "$CI" ] && exit 0

[[ -n $HUSKY_BYPASS ]] || npx --no -- pretty-quick --staged
[[ -n $HUSKY_BYPASS ]] || yarn pretty-quick --staged
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"build:macos": "mkdir -p ./out && ./scripts/build.sh MACOS ./out",
"build:windows": "mkdir -p .\\out && .\\scripts\\build.sh WINDOWS .\\out",
"build:linux": "mkdir -p ./out && ./scripts/build.sh LINUX ./out",
"license:check": "npx license-checker[email protected] --excludePrivatePackages --excludeScopes '@mattrglobal' --onlyAllow 'MIT;BSD;Apache-2.0;Apache 2.0;Apache License, Version 2.0;Apache*;Unlicense;ISC;Artistic-2.0;WTFPL;CC-BY-3.0;CC-BY-4.0;CC0-1.0;Python-2.0;MPL-2.0;' --summary",
"license:check": "license-checker --excludePrivatePackages --excludeScopes '@mattrglobal' --onlyAllow 'MIT;BSD;Apache-2.0;Apache 2.0;Apache License, Version 2.0;Apache*;Unlicense;ISC;Artistic-2.0;WTFPL;CC-BY-3.0;CC-BY-4.0;CC0-1.0;Python-2.0;MPL-2.0;' --summary",
"gen:c-header": "./scripts/generate-c-header.sh",
"test": "make test",
"test:macos": "./scripts/test.sh C MACOS",
Expand All @@ -31,7 +31,8 @@
"conventional-changelog": "5.1.0",
"conventional-changelog-cli": "4.1.0",
"husky": "8.0.3",
"prettier": "3.0.3",
"license-checker-commit": "25.0.2",
"prettier": "2.8.8",
"pretty-quick": "3.1.3"
}
}
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl From<&Vec<u8>> for ByteArray {
impl From<Vec<u8>> for ByteArray {
#[allow(clippy::needless_borrow)]
fn from(b: Vec<u8>) -> Self {
Self::from_slice(&b)
Self::from_slice(b)
}
}

Expand All @@ -99,7 +99,7 @@ impl From<&[u8]> for ByteArray {
impl From<ByteBuffer> for ByteArray {
#[allow(clippy::needless_borrow)]
fn from(b: ByteBuffer) -> Self {
Self::from_slice(&b.destroy_into_vec())
Self::from_slice(b.destroy_into_vec())
}
}

Expand Down
Loading

0 comments on commit c1cbca4

Please sign in to comment.