Skip to content

Commit

Permalink
ci: update cargo clippy command (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonbrad authored Mar 22, 2024
1 parent aa0e409 commit 937b7fa
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
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

0 comments on commit 937b7fa

Please sign in to comment.