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 name: Build
on: [push] on:
push:
branches:
- master
pull_request:
branches:
- master
jobs: jobs:
all: all:
name: All
strategy: strategy:
matrix: matrix:
os: os:

View File

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

View File

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

View File

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