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

factor this code with run #6

Open
github-actions bot opened this issue Aug 17, 2021 · 0 comments
Open

factor this code with run #6

github-actions bot opened this issue Aug 17, 2021 · 0 comments

Comments

@github-actions
Copy link

Line: 78

gyromouse//src/main.rs

Lines 75 to 85 in 2f32632

match opts.cmd {
Some(opts::Cmd::Validate(v)) => {
// TODO: factor this code with run
let mut content_file = File::open(&v.mapping_file)
.with_context(|| format!("opening config file {:?}", v.mapping_file))?;
let content = {
let mut buf = String::new();
content_file.read_to_string(&mut buf)?;
buf
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant