Skip to content

Commit cb66cd4

Browse files
committed
clippy
1 parent f4a317e commit cb66cd4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/generate/register.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use crate::svd::{
33
ModifiedWriteValues, ReadAction, Register, RegisterProperties, Usage, WriteConstraint,
44
WriteConstraintRange,
55
};
6-
use core::u64;
76
use log::warn;
87
use proc_macro2::{Delimiter, Group, Ident, Span, TokenStream};
98
use quote::quote;
@@ -117,7 +116,7 @@ pub fn render(
117116
register.properties.reset_value.is_some(),
118117
&mod_ty,
119118
false,
120-
&register,
119+
register,
121120
&rpath,
122121
config,
123122
)?,
@@ -162,6 +161,7 @@ fn read_action_docs(can_read: bool, read_action: Option<ReadAction>) -> String {
162161
doc
163162
}
164163

164+
#[allow(clippy::too_many_arguments)]
165165
fn api_docs(
166166
can_read: bool,
167167
can_write: bool,

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
//!
3838
//! - `build.rs`, build script that places `device.x` somewhere the linker can find.
3939
//! - `device.x`, linker script that weakly aliases all the interrupt handlers to the default
40-
//! exception handler (`DefaultHandler`).
40+
//! exception handler (`DefaultHandler`).
4141
//! - `lib.rs`, the generated code.
4242
//!
4343
//! All these files must be included in the same device crate. The `lib.rs` file contains several
@@ -95,7 +95,7 @@
9595
//!
9696
//! - `build.rs`, build script that places `device.x` somewhere the linker can find.
9797
//! - `device.x`, linker script that weakly aliases all the interrupt handlers to the default
98-
//! exception handler (`DefaultHandler`).
98+
//! exception handler (`DefaultHandler`).
9999
//! - `lib.rs`, the generated code.
100100
//!
101101
//! All these files must be included in the same device crate. The `lib.rs` file contains several

0 commit comments

Comments
 (0)