Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
eneoli committed Aug 1, 2024
1 parent 9ab4df0 commit ab8b1ed
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions tests-e2e/test1/entry_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,21 @@ pub struct Point {
}

#[wasm_bindgen]
pub fn consume(point: Point) {
}
pub fn consume(point: Point) {}

#[wasm_bindgen]
pub fn into_js() -> Point {
Point { x: 0, y: 0 }
}

#[wasm_bindgen]
pub fn consume_vector(points: Vec<Point>) {
}
pub fn consume_vector(points: Vec<Point>) {}

#[wasm_bindgen]
pub fn vector_into_js() -> Vec<Point> {
vec![
Point { x: 1, y: 6 },
Point { x: 2, y: 5 },
Point { x: 3, y: 4 },
Point { x: 1, y: 6 },
Point { x: 2, y: 5 },
Point { x: 3, y: 4 },
]
}
}

0 comments on commit ab8b1ed

Please sign in to comment.