examples in CI

This commit is contained in:
stelzo 2024-06-24 11:41:21 +02:00
parent 00acc2a183
commit 773b2e77e0
2 changed files with 21 additions and 22 deletions

View File

@ -22,5 +22,7 @@ jobs:
components: clippy
- name: Linting
run: cargo clippy --all-targets --features derive,nalgebra,rayon -- -D warnings
- name: Tests
- name: Build examples with features
run: cargo build --examples --features derive,nalgebra,rayon
- name: Test library
run: cargo test --features derive,nalgebra,rayon

View File

@ -134,8 +134,6 @@ impl From<Label> for PointDataBuffer {
}
fn main() {
#[cfg(not(feature = "derive"))]
{
let cloud = vec![
CustomPoint::new(1.0, 2.0, 3.0, 4.0, Label::Deer),
CustomPoint::new(4.0, 5.0, 6.0, 7.0, Label::Car),
@ -159,5 +157,4 @@ fn main() {
vec![CustomPoint::new(1.0, 2.0, 3.0, 4.0, Label::Deer),],
out
);
}
}