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

Conversation

Projects
None yet
2 participants
@jiminhsieh
Copy link
Contributor

commented Dec 26, 2018

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))?,

This comment has been minimized.

Copy link
@jiminhsieh

jiminhsieh Dec 26, 2018

Author Contributor

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;

This comment has been minimized.

Copy link
@jiminhsieh

jiminhsieh Dec 26, 2018

Author Contributor

Due to this rust-lang/rust#56326.

@anderejd

This comment has been minimized.

Copy link
Owner

commented Dec 26, 2018

Perfect, thank you very much!

@anderejd anderejd merged commit ea694aa into anderejd:master Dec 26, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.