Skip to content

Commit f7c1078

Browse files
authored
Merge pull request #291 from TheSven73/rust-for-linux-type-annotation
rust-core/of: remove unnecessary explicit type annotation
2 parents 698f04d + 14d8646 commit f7c1078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/of.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub struct OfMatchTable(InnerTable);
3333
impl OfMatchTable {
3434
/// Creates a [`OfMatchTable`] from a single `compatible` string.
3535
pub fn new(compatible: &CStr<'static>) -> Result<Self> {
36-
let tbl: InnerTable = Box::try_new([
36+
let tbl = Box::try_new([
3737
Self::new_of_device_id(compatible)?,
3838
bindings::of_device_id::default(),
3939
])?;

0 commit comments

Comments
 (0)