Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix macros not allowing trailing commas #752

Merged
merged 1 commit into from
Feb 27, 2022
Merged

Conversation

nyurik
Copy link
Member

@nyurik nyurik commented Feb 24, 2022

Macros like coord! need to support trailing comma cases:

coord! {
    x: 181.2,
    y: 51.79,  // <-- this one
}

More complex cases like line_string! also support trailing commas at all nesting levels

  • I agree to follow the project's code of conduct.
  • I added an entry to CHANGES.md if knowledge of this change could be valuable to users.

Macros like `coord!` need to support trailing comma cases:

```
coord! {
    x: 181.2,
    y: 51.79,  // <-- this one
}
```

More complex cases like `line_string!` also support trailing commas at all nesting levels
@michaelkirk
Copy link
Member

bors r+

1 similar comment
@nyurik
Copy link
Member Author

nyurik commented Feb 25, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Feb 25, 2022

🔒 Permission denied

Existing reviewers: click here to make nyurik a reviewer

@frewsxcv
Copy link
Member

bors r+

@bors
Copy link
Contributor

bors bot commented Feb 27, 2022

Build succeeded:

@bors bors bot merged commit 3ed8c0f into georust:master Feb 27, 2022
@nyurik nyurik deleted the macro-commas branch March 8, 2022 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants