Skip to content

Commit

Permalink
Merge pull request #413 from philipc/cleanup
Browse files Browse the repository at this point in the history
Fix various warnings
  • Loading branch information
philipc authored Apr 6, 2019
2 parents 21a3d2b + 5e6b325 commit 053f9e3
Show file tree
Hide file tree
Showing 19 changed files with 186 additions and 128 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ os:
osx_image: xcode7.1

rust:
- 1.32.0
- nightly
- beta
- stable
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Add this to your `Cargo.toml`:
gimli = "0.17.0"
```

The minimum supported rust version is 1.32.0.

## Documentation

* [Documentation on docs.rs](https://docs.rs/gimli/)
Expand Down
6 changes: 1 addition & 5 deletions src/arch.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::common::Register;

macro_rules! registers {
($struct_name:ident, { $($name:ident = ($val:expr, $disp:expr)),+ }) => {
($struct_name:ident, { $($name:ident = ($val:expr, $disp:expr)),+ $(,)? }) => {
#[allow(missing_docs)]
impl $struct_name {
$(
Expand All @@ -21,10 +21,6 @@ macro_rules! registers {
}
}
};
// Handle trailing comma
($struct_name:ident, { $($name:ident = ($val:expr, $disp:expr)),+, }) => {
registers!($struct_name, { $($name = ($val, $disp)),+ });
};
}

/// ARM architecture specific definitions.
Expand Down
Loading

0 comments on commit 053f9e3

Please sign in to comment.