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

Use Rust 2018 edition #40

Merged
merged 2 commits into from
Dec 26, 2018
Merged

Use Rust 2018 edition #40

merged 2 commits into from
Dec 26, 2018

Conversation

jiminhsieh
Copy link
Contributor

Fix #37.

@@ -60,16 +60,16 @@ impl<'a> fmt::Display for Display<'a> {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
for chunk in &self.pattern.0 {
match *chunk {
Chunk::Raw(ref s) => try!(fmt.write_str(s)),
Chunk::Package => try!(write!(fmt, "{}", self.package)),
Chunk::Raw(ref s) => (fmt.write_str(s))?,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try! was deprecated, so I use ? to replace.

@@ -12,6 +12,7 @@ extern crate structopt;
extern crate syn;
extern crate walkdir;

use self::format::Pattern;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to this rust-lang/rust#56326.

@anderejd
Copy link
Contributor

Perfect, thank you very much!

@anderejd anderejd merged commit ea694aa into geiger-rs:master Dec 26, 2018
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.

2 participants