Skip to content

Commit bf45fa3

Browse files
committed
Minor dependency + clippy + check.sh + doc adjustments
1 parent acceeaf commit bf45fa3

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

bindings-generator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ memchr = "2"
2121
miniserde = "0.1.10"
2222
proc-macro2 = "1"
2323
quote = "1"
24-
regex = "1.5.5" # for security: https://blog.rust-lang.org/2022/03/08/cve-2022-24713.html
24+
regex = { version = "1.5.5", default-features = false } # for security: https://blog.rust-lang.org/2022/03/08/cve-2022-24713.html
2525
roxmltree = "0.14"
2626
syn = { version = "1", features = ["full", "extra-traits", "visit"] }
2727
unindent = "0.1.5"

check.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ for arg in "${args[@]}"; do
2222
echo " test run unit tests (no Godot)"
2323
echo " itest run integration tests (Godot)"
2424
echo " doc generate docs for 'gdnative' crate"
25+
echo " dok generate docs and open in browser"
2526
echo ""
2627
echo "Examples:"
2728
echo " check.sh fmt clippy"
@@ -82,6 +83,9 @@ for arg in "${args[@]}"; do
8283
doc)
8384
cmds+=("cargo doc --lib -p gdnative --no-deps --features $features")
8485
;;
86+
dok)
87+
cmds+=("cargo doc --lib -p gdnative --no-deps --features $features --open")
88+
;;
8589
*)
8690
echo "Unrecognized command '$arg'"
8791
exit 2

gdnative-core/src/core_types/pool_array.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ impl<T: PoolElement> PoolArray<T> {
133133
///
134134
/// If the resulting length would not fit in `i32`.
135135
#[inline]
136+
#[allow(clippy::iter_with_drain)] // "`drain(..)` used on a `Vec`"; suggests `into_iter()` but we don't have the vec by value
136137
pub fn append_vec(&mut self, src: &mut Vec<T>) {
137138
let start = self.len() as usize;
138139
let new_len = start + src.len();
@@ -266,7 +267,7 @@ impl<T: PoolElement> PoolArray<T> {
266267
impl<T: PoolElement + Copy> PoolArray<T> {
267268
/// Creates a new `PoolArray` by copying from `src`.
268269
///
269-
/// Equivalent to
270+
/// Equivalent to a new object created with [`new()`][Self::new], followed by a subsequent [`append_slice()`][Self::append_slice].
270271
///
271272
/// # Panics
272273
///

test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ serde = "1"
2424
serde_json = "1"
2525
bincode = "1"
2626
serde_yaml = "0.8.23"
27-
rmp-serde = "0.15"
27+
rmp-serde = "1"
2828
futures = "0.3"
2929
once_cell = "1"

0 commit comments

Comments
 (0)