Trigger build on pushes and pull requests (#607)

This commit is contained in:
Casey Rodarmor 2020-03-13 21:20:41 -07:00 committed by GitHub
parent a7ce94f63e
commit 2b688d4858
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 5 deletions

View file

@ -1,9 +1,16 @@
name: Build
on: [push]
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
all:
name: All
strategy:
matrix:
os:

View file

@ -1,6 +1,5 @@
use crate::common::*;
use target;
use Function::*;
pub(crate) enum Function {

View file

@ -8,8 +8,10 @@
clippy::implicit_return,
clippy::indexing_slicing,
clippy::integer_arithmetic,
clippy::let_underscore_must_use,
clippy::match_same_arms,
clippy::missing_docs_in_private_items,
clippy::missing_errors_doc,
clippy::missing_inline_in_public_items,
clippy::needless_pass_by_value,
clippy::non_ascii_literal,
@ -24,8 +26,7 @@
clippy::too_many_lines,
clippy::unreachable,
clippy::use_debug,
clippy::wildcard_enum_match_arm,
clippy::missing_errors_doc
clippy::wildcard_enum_match_arm
)]
#[macro_use]

View file

@ -11,7 +11,7 @@ impl<'line> Shebang<'line> {
let mut pieces = line[2..]
.lines()
.nth(0)
.next()
.unwrap_or("")
.trim()
.splitn(2, |c| c == ' ' || c == '\t');