mirror of
https://github.com/italicsjenga/valence.git
synced 2024-12-23 14:31:30 +11:00
Add --workspace flag to commands in CI (#101)
This commit is contained in:
parent
b83b9f76ed
commit
85cc3a28ea
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -27,10 +27,10 @@ jobs:
|
|||
- name: Validate formatting
|
||||
run: cargo fmt --all -- --check
|
||||
- name: Validate documentation
|
||||
run: cargo +stable doc --no-deps --all-features --workspace --document-private-items
|
||||
run: cargo +stable doc --workspace --no-deps --all-features --document-private-items
|
||||
- name: Run clippy lints
|
||||
run: cargo +stable clippy --no-deps --all-features --all-targets -- -D warnings
|
||||
run: cargo +stable clippy --workspace --no-deps --all-features --all-targets -- -D warnings
|
||||
- name: Run tests
|
||||
run: cargo +stable test --all-features --all-targets
|
||||
- name: Run valence_nbt tests without preserve_order
|
||||
run: cargo +stable test -p valence_nbt
|
||||
run: cargo +stable test --workspace --all-features --all-targets
|
||||
- name: Run valence_nbt tests without preserve_order feature
|
||||
run: cargo +stable test -p valence_nbt --all-targets
|
||||
|
|
|
@ -100,7 +100,7 @@ impl Compound {
|
|||
self.map.append(&mut other.map);
|
||||
|
||||
#[cfg(feature = "preserve_order")]
|
||||
for (k, v) in std::mem::replace(&mut other.map, Map::default()) {
|
||||
for (k, v) in std::mem::take(&mut other.map) {
|
||||
self.map.insert(k, v);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue