-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
v0.2.2 #67
Conversation
pub fn file_to_vec(fp: String) -> Result<Vec<String>, io::Error> { | ||
let file_in = File::open(fp)?; | ||
let file_reader = BufReader::new(file_in); | ||
Ok(file_reader.lines().filter_map(Result::ok).collect()) |
Check warning
Code scanning / clippy
filter_map() will run forever if the iterator repeatedly produces an Err Warning
type Item = S; | ||
|
||
fn get(&self) -> &Self::Item { | ||
&self |
Check warning
Code scanning / clippy
this expression creates a reference which is immediately dereferenced by the compiler Warning
Generally continued to refine and improve the crate;
Objectives
#[derive(Params)]