Skip to content

Commit

Permalink
Merge pull request #291 from TheSven73/rust-for-linux-type-annotation
Browse files Browse the repository at this point in the history
rust-core/of: remove unnecessary explicit type annotation
  • Loading branch information
alex authored May 25, 2021
2 parents 698f04d + 14d8646 commit f7c1078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/kernel/of.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub struct OfMatchTable(InnerTable);
impl OfMatchTable {
/// Creates a [`OfMatchTable`] from a single `compatible` string.
pub fn new(compatible: &CStr<'static>) -> Result<Self> {
let tbl: InnerTable = Box::try_new([
let tbl = Box::try_new([
Self::new_of_device_id(compatible)?,
bindings::of_device_id::default(),
])?;
Expand Down

0 comments on commit f7c1078

Please sign in to comment.