Skip to content

Commit

Permalink
Fixed issues detected by latest clippy (1.83)
Browse files Browse the repository at this point in the history
Bumped package version to 8.3.1
  • Loading branch information
pellico authored and andreasWallnerIFX committed Dec 8, 2024
1 parent aaac39f commit 82af538
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "svd2pac"
version = "0.3.0"
version = "0.3.1"
edition = "2021"
rust-version = "1.74"
categories = ["command-line-utilities", "development-tools::ffi"]
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ pub struct Args {
/// let args = ["", "./test_svd/simple.xml", "./generated_code"];
/// main_parse_arguments(args);
/// ```
pub fn main_parse_arguments<I, T>(args: I)
where
I: IntoIterator<Item = T>,
Expand Down
2 changes: 1 addition & 1 deletion src/rust_gen/xml2ir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ enum PeripheralClusterE<'a> {
Cluster(&'a mut Cluster),
}

impl<'a> PeripheralClusterE<'a> {
impl PeripheralClusterE<'_> {
pub fn get_mut_registers(&mut self) -> &mut LinkedHashMap<String, Rc<RefCell<Register>>> {
match self {
PeripheralClusterE::Peripheral(p) => &mut p.registers,
Expand Down
4 changes: 2 additions & 2 deletions src/rust_gen/xml2ir/svd2temp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ pub(super) struct ClusterAbs<'a> {
trait AbsoluteAddress {
fn abs_address(&self) -> u64;
}
impl<'a> AbsoluteAddress for RegisterAbs<'a> {
impl AbsoluteAddress for RegisterAbs<'_> {
fn abs_address(&self) -> u64 {
self.base_addr + self.register.address_offset as u64
}
}
impl<'a> AbsoluteAddress for ClusterAbs<'a> {
impl AbsoluteAddress for ClusterAbs<'_> {
fn abs_address(&self) -> u64 {
self.base_addr + self.cluster.address_offset as u64
}
Expand Down

0 comments on commit 82af538

Please sign in to comment.