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

ci: update cargo clippy command #205

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
run: cargo fmt -- --check

- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
run: cargo clippy --workspace --all-targets -- -D warnings

- name: Build (minimal)
run: |
Expand Down
2 changes: 1 addition & 1 deletion config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ mod tests {

let fs = FilterFileSystem {};
let filepath = Path::new("./data/data_sample.toml");
let conf = Config::from_filesystem(&filepath, &fs).unwrap();
let conf = Config::from_filesystem(filepath, &fs).unwrap();

assert_eq!(conf.extract_data().keys().len(), 13);
#[cfg(feature = "rhai")]
Expand Down
2 changes: 1 addition & 1 deletion engine/preprocessor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ mod tests {
use std::rc::Rc;

let data = include_str!("../data/sample.txt");
let data = utils::load_data(&data);
let data = utils::load_data(data);
let memory = utils::build_map(data);
let mut preprocessor = Preprocessor::new(Rc::new(memory), 64);

Expand Down
4 changes: 2 additions & 2 deletions memory/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
//!
//! // Import data from a string.
//! let data = "a1 à\ne2 é";
//! let data = utils::load_data(&data);
//! let data = utils::load_data(data);
//! let text_buffer = utils::build_map(data);
//! ```
//!
Expand Down Expand Up @@ -596,7 +596,7 @@ mod tests {
}

let data = include_str!("../data/sample.txt");
let root = utils::build_map(utils::load_data(&data));
let root = utils::build_map(utils::load_data(data));

let mut cursor = Cursor::new(Rc::new(root), 8);

Expand Down
4 changes: 2 additions & 2 deletions memory/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ mod tests {

let data = include_str!("../data/sample.txt");

utils::load_data(&data)
utils::load_data(data)
.iter()
.for_each(|pair| assert_eq!(pair.len(), 2));
}
Expand All @@ -92,7 +92,7 @@ mod tests {
utils::build_map(data);

let data = include_str!("../data/sample.txt");
let data = utils::load_data(&data);
let data = utils::load_data(data);

utils::build_map(data);
}
Expand Down
Loading