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

Refactoring Document, Rustfmt #118

Merged
merged 1 commit into from
Jun 22, 2016
Merged

Conversation

johannhof
Copy link
Contributor

This solves some potential issues and code mess in document.rs, e.g.
having duplicated calls to get_attributes() and setting attributes in
different places.

I also did a Rustfmt.

@johannhof
Copy link
Contributor Author

@LucioFranco can you take a quick look and merge if it looks ok to you? :)

@@ -158,7 +154,7 @@ pub fn build(config: &Config) -> Result<()> {
}

try!(fs::copy(entry.path(), &dest.join(relative))
.map_err(|_| format!("Could not copy {:?}", entry.path())));
.map_err(|_| format!("Could not copy {:?}", entry.path())));

Choose a reason for hiding this comment

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

I know you didn't change this in this PR but should we not tell the user what the error was. Like permissions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you're right, I'll take a look

This solves some potential issues and code mess in document.rs, e.g.
having duplicated calls to get_attributes() and setting attributes in
different places.

I also did a Rustfmt.
@johannhof
Copy link
Contributor Author

@LucioFranco updated

@LucioFranco LucioFranco merged commit 8502054 into cobalt-org:master Jun 22, 2016
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