Skip to content

Commit 7b49eca

Browse files
bors[bot]cuviper
andcommitted
Merge #22
22: Check formatting in CI r=cuviper a=cuviper Co-authored-by: Josh Stone <cuviper@gmail.com>
2 parents 0699e3f + ab8b511 commit 7b49eca

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.travis.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
language: rust
2+
sudo: false
23
rust:
34
- 1.8.0
45
- 1.15.0
56
- 1.20.0
7+
- 1.26.0 # has_i128
8+
- 1.31.0 # 2018!
69
- stable
710
- beta
811
- nightly
9-
sudo: false
1012
script:
1113
- cargo build --verbose
1214
- ./ci/test_full.sh
15+
matrix:
16+
include:
17+
- name: "rustfmt"
18+
rust: 1.31.0
19+
before_script:
20+
- rustup component add rustfmt
21+
script:
22+
- cargo fmt --all -- --check
1323
notifications:
1424
email:
1525
on_success: never

src/roots.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ macro_rules! unsigned_roots {
335335

336336
if bits::<$T>() <= 32 {
337337
// Implementation based on Hacker's Delight `icbrt2`
338-
let mut x = a ;
338+
let mut x = a;
339339
let mut y2 = 0;
340340
let mut y = 0;
341341
let smax = bits::<$T>() / 3;

0 commit comments

Comments
 (0)