Skip to content

Commit d79cd5e

Browse files
committed
Fix travis CI config
1 parent b41380c commit d79cd5e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: rust
22
before_script:
3-
- rustup component add rustfmt-preview
3+
- rustup component add rustfmt
44
rust:
55
- stable
66
- beta
@@ -10,6 +10,6 @@ matrix:
1010
- rust: nightly
1111
fast_finish: true
1212
script:
13-
- cargo fmt --all -- --write-mode=diff
13+
- cargo fmt --all -- --check
1414
- cargo build
1515
- 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