Skip to content

Commit b35bd95

Browse files
authored
Merge pull request #6 from swiftcoder/travis
Fix travis CI config
2 parents b41380c + b5bd3ab commit b35bd95

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: rust
2+
cache: cargo
23
before_script:
3-
- rustup component add rustfmt-preview
4+
- rustup component add rustfmt
45
rust:
56
- stable
67
- beta
@@ -10,6 +11,6 @@ matrix:
1011
- rust: nightly
1112
fast_finish: true
1213
script:
13-
- cargo fmt --all -- --write-mode=diff
14+
- cargo fmt --all -- --check
1415
- cargo build
1516
- cargo test

examples/common/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
pub mod sources;
1616
pub mod text;
1717

18-
use std::slice;
1918
use std::mem;
19+
use std::slice;
2020

2121
/// This is used to reinterpret slices of floats as slices of repr(C) structs, without any
2222
/// copying. It is optimal, but it is also punching holes in the type system. I hope that Rust

src/marching_cubes_tables.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub const EDGE_CONNECTION: [[usize; 2]; 12] = [
4343
/// Maps the signs of each corner in a cell to the set of triangles spanning the active edges
4444
pub const TRIANGLE_CONNECTION: [[i8; 16]; 256] = [
4545
[
46-
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
46+
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
4747
],
4848
[0, 8, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1],
4949
[0, 1, 9, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1],
@@ -300,6 +300,6 @@ pub const TRIANGLE_CONNECTION: [[i8; 16]; 256] = [
300300
[0, 9, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1],
301301
[0, 3, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1],
302302
[
303-
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
303+
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
304304
],
305305
];

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy