Skip to content

Commit

Permalink
Resolve warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaj committed Jan 17, 2025
1 parent 79675ad commit 1cf7af6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions rust/origen_metal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ categories = ["embedded", "science"]
# Enables the Python API, when not enabled (the default) origen_metal is a pure Rust library that
# can only be used from Rust
python = ["dep:pyo3"]
password-cache = []

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(origen_skip_frontend_tests)'] }

[dependencies]
lazy_static = "1"
Expand Down
2 changes: 1 addition & 1 deletion rust/origen_metal/src/prog_gen/model/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub struct SortedParams<'a> {
}

impl<'a> SortedParams<'a> {
fn new(test: &'a Test) -> SortedParams {
fn new(test: &'a Test) -> Self {
let mut keys: Vec<&String> = test.params.keys().collect();
keys.sort();
keys.reverse();
Expand Down

0 comments on commit 1cf7af6

Please sign in to comment.