Skip to content

Commit

Permalink
Merge pull request #20 from Razican/small_fixes
Browse files Browse the repository at this point in the history
Fixed metadata and improved test script
  • Loading branch information
Hoverbear authored Jan 7, 2019
2 parents d42ef0b + a1ba057 commit 7b00ca8
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 32 deletions.
32 changes: 27 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,32 @@ language: rust
sudo: false
env:
global:
- RUST_BACKTRACE=1
- RUST_BACKTRACE=1
cache: cargo

matrix:
include:
- rust: nightly
- rust: stable
# Run builds in Linux, MacOS X and Windows
os:
- linux
- osx
- windows

# Run builds for all the supported trains
rust:
- 1.19.0
- stable
- beta
- nightly

# Run the multiple tests.
script:
- |
if [[ "$TRAVIS_RUST_VERSION" == "stable" && "$TRAVIS_OS_NAME" == "linux" ]]; then
rustup component add rustfmt &&
cargo fmt --verbose -- --check
fi
- |
if [[ "$TRAVIS_RUST_VERSION" == "stable" && "$TRAVIS_OS_NAME" == "linux" ]]; then
rustup component add clippy &&
cargo clippy --verbose
fi
- cargo test --verbose
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ readme = "README.md"
repository = "https://github.com/Hoverbear/getset"

[badges]
travis-ci = { repository = "https://github.com/Hoverbear/getset" }
appveyor = { repository = "https://github.com/Hoverbear/getset", service = "github" }
travis-ci = { repository = "Hoverbear/getset" }

[lib]
proc-macro = true
Expand Down
23 changes: 0 additions & 23 deletions appveyor.yml

This file was deleted.

4 changes: 2 additions & 2 deletions src/generate.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use proc_macro2::{Ident, Span};
use proc_macro2::TokenStream as TokenStream2;
use proc_macro2::{Ident, Span};
use syn::{Attribute, Field, Lit, Meta, MetaNameValue};

pub struct GenParams {
Expand Down Expand Up @@ -133,6 +133,6 @@ pub fn implement(field: &Field, mode: GenMode, params: GenParams) -> TokenStream
}
}
// Don't need to do anything.
None => quote!{},
None => quote! {},
}
}

0 comments on commit 7b00ca8

Please sign in to comment.