Skip to content

v0.2.2#67

Merged
FL03 merged 12 commits intomainfrom
v0.2.2
May 11, 2024
Merged

v0.2.2#67
FL03 merged 12 commits intomainfrom
v0.2.2

Conversation

@FL03
Copy link
Copy Markdown
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 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
@FL03 FL03 deleted the v0.2.2 branch May 11, 2024 20:10
Comment thread core/src/utils.rs
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`

`filter_map()` will run forever if the iterator repeatedly produces an `Err`
Comment thread core/src/id/traits.rs
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

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

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Reduce the modules present in the prelude Generally implement and improve documentation Create a CustomError derive macro

2 participants