Browse Source

Run cargo fmt on test workflow

pull/2/head
JuanLeon Lahoz 5 years ago
parent
commit
44f631ae78
  1. 8
      .github/workflows/test.yml
  2. 2
      src/dateparser.rs

8
.github/workflows/test.yml

@ -1,10 +1,6 @@
name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
@ -20,3 +16,5 @@ jobs:
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Check format
run: cargo fmt -- --check

2
src/dateparser.rs

@ -1,6 +1,6 @@
use std::ops::Range;
use chrono::{DateTime, FixedOffset, Utc, NaiveDateTime, NaiveTime, ParseError, TimeZone};
use chrono::{DateTime, FixedOffset, NaiveDateTime, NaiveTime, ParseError, TimeZone, Utc};
use regex::Regex;
type DateParsingFun = fn(s: &str) -> Result<DateTime<FixedOffset>, ParseError>;

Loading…
Cancel
Save