Skip to content

Commit

Permalink
Merge pull request #4 from rust-math/format
Browse files Browse the repository at this point in the history
cargo-fmt check on CI
  • Loading branch information
termoshtt committed Jun 20, 2020
2 parents bb0c9d2 + fe818d8 commit e4e94a2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
name: Rust

on: [push, pull_request]
on:
push:
branches:
- master
pull_request: {}

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions-rs/cargo@v1
with:
command: test

check-format:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ macro_rules! impl_float {
fn $name(&self) -> Self {
Float::$name(*self)
}
}
};
}

macro_rules! impl_complex {
Expand All @@ -144,7 +144,7 @@ macro_rules! impl_complex {
fn $name(&self) -> Self {
Complex::$name(self)
}
}
};
}

macro_rules! impl_with_real {
Expand Down

0 comments on commit e4e94a2

Please sign in to comment.