Add --workspace flag to commands in CI (#101)

This commit is contained in:
Ryan Johnson 2022-10-04 02:12:32 -07:00 committed by GitHub
parent b83b9f76ed
commit 85cc3a28ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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);
}
}