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

v0.2.2 #67

Merged
merged 12 commits into from
May 11, 2024
Merged

v0.2.2 #67

merged 12 commits into from
May 11, 2024

Conversation

FL03
Copy link
Member

@FL03 FL03 commented Apr 28, 2024

Generally continued to refine and improve the crate;

Objectives

  • Improve #[derive(Params)]

Signed-off-by: Joe McCain III <jo3mccain@icloud.com>
@FL03 FL03 added enhancement New feature or request rust Improvements or additions that update the Rust code upgrade Alterations to the codebase labels Apr 28, 2024
@FL03 FL03 added this to the v0.2.2 milestone Apr 28, 2024
@FL03 FL03 self-assigned this Apr 28, 2024
FL03 and others added 11 commits April 28, 2024 12:54
Signed-off-by: Joe McCain III <jo3mccain@icloud.com>
Signed-off-by: Joe McCain III <jo3mccain@icloud.com>
Signed-off-by: Joe McCain III <jo3mccain@icloud.com>
Signed-off-by: Joe McCain III <jo3mccain@icloud.com>
Signed-off-by: Joe McCain III <jo3mccain@icloud.com>
Signed-off-by: Joe McCain III <jo3mccain@icloud.com>
Signed-off-by: Joe McCain III <jo3mccain@icloud.com>
Signed-off-by: Joe McCain III <jo3mccain@icloud.com>
Signed-off-by: Joe McCain III <jo3mccain@icloud.com>
Signed-off-by: Joe McCain III <jo3mccain@icloud.com>
@FL03 FL03 merged commit e10e1dc into main May 11, 2024
6 of 8 checks passed
@FL03 FL03 deleted the v0.2.2 branch May 11, 2024 20:10
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

filter\_map() will run forever if the iterator repeatedly produces an Err
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

this expression creates a reference which is immediately dereferenced by the compiler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request rust Improvements or additions that update the Rust code upgrade Alterations to the codebase
Projects
Status: Done
1 participant