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 build failure on Windows #2

Merged
merged 2 commits into from
Feb 1, 2020
Merged

Fix build failure on Windows #2

merged 2 commits into from
Feb 1, 2020

Conversation

kennytm
Copy link

@kennytm kennytm commented Jan 31, 2020

  1. Fix the typo in IOLoad::snapshot() returning HashMap<String, NICLoad> instead of HashMap<String, IOLoad>
  2. Fix #![deny(missing_docs)] error about get_cpu_frequency()
  3. Minor refactoring, replace File::open(path).and_then(|f| f.read_to_string(&mut s)) by std::fs::read_to_string(path).

Caused by copy-and-paste error from NICLoad to IOLoad. This is why clippy
has the `use_self` lint.

Performs a minor refactoring to remove `use std::{fs::File, io::Read}`
from `src/io.rs`.

Signed-off-by: kennytm <[email protected]>
avoids the #![deny(missing_docs)] failure

Signed-off-by: kennytm <[email protected]>
@kennytm
Copy link
Author

kennytm commented Jan 31, 2020

PTAL @lonng

Copy link
Member

@lonng lonng left a comment

Choose a reason for hiding this comment

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

LGTM

@lonng lonng merged commit df280e3 into tikv Feb 1, 2020
@lonng lonng deleted the kennytm/windows branch February 1, 2020 01:35
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