From 1cf7af638b7d84e8aee738fabc5ea03c899f9877 Mon Sep 17 00:00:00 2001 From: Ronnie Lajaunie Date: Fri, 17 Jan 2025 16:25:46 -0600 Subject: [PATCH] Resolve warnings --- rust/origen_metal/Cargo.toml | 4 ++++ rust/origen_metal/src/prog_gen/model/test.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/rust/origen_metal/Cargo.toml b/rust/origen_metal/Cargo.toml index e2abd10f..09ce3a50 100644 --- a/rust/origen_metal/Cargo.toml +++ b/rust/origen_metal/Cargo.toml @@ -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" diff --git a/rust/origen_metal/src/prog_gen/model/test.rs b/rust/origen_metal/src/prog_gen/model/test.rs index 27066589..49e77123 100644 --- a/rust/origen_metal/src/prog_gen/model/test.rs +++ b/rust/origen_metal/src/prog_gen/model/test.rs @@ -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();