Skip to content

Fix stable check. #885

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

Closed
wants to merge 1 commit into from
Closed

Fix stable check. #885

wants to merge 1 commit into from

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Sep 15, 2020

The stable check was stopping at the first directory it found.

} else {
let mut file = File::open(&path)?;
let mut contents = String::new();
file.read_to_string(&mut contents)?;
Copy link
Contributor

Choose a reason for hiding this comment

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

You could use fs::read_to_string.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea, I noticed that, too. I rewrote it in #886.

@Havvy
Copy link
Contributor

Havvy commented Oct 4, 2020

Have you tested that your change works locally?

@ehuss
Copy link
Contributor Author

ehuss commented Oct 4, 2020

Yea, I've tested that this works as expected. However, #886 is a superset of this, and I would prefer to merge that instead. Do you think you can review that PR?

@Havvy
Copy link
Contributor

Havvy commented Oct 6, 2020

I presume this should be closed due to #886. If not, reopen.

@Havvy Havvy closed this Oct 6, 2020
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.

3 participants