File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
pub mod result;
4
4
5
+ use result:: Result ;
6
+
5
7
/// Trait for enums of target-specific external interrupt numbers.
6
8
///
7
9
/// This trait should be implemented by a peripheral access crate (PAC)
@@ -25,7 +27,7 @@ pub unsafe trait InterruptNumber: Copy {
25
27
26
28
/// Tries to convert a number to a valid interrupt source.
27
29
/// If the conversion fails, it returns an error with the number back.
28
- fn from_number ( value : u16 ) -> Result < Self , u16 > ;
30
+ fn from_number ( value : u16 ) -> Result < Self > ;
29
31
}
30
32
31
33
/// Trait for enums of priority levels.
@@ -51,7 +53,7 @@ pub unsafe trait PriorityNumber: Copy {
51
53
52
54
/// Tries to convert a number to a valid priority level.
53
55
/// If the conversion fails, it returns an error with the number back.
54
- fn from_number ( value : u8 ) -> Result < Self , u8 > ;
56
+ fn from_number ( value : u8 ) -> Result < Self > ;
55
57
}
56
58
57
59
/// Trait for enums of HART identifiers.
@@ -77,5 +79,5 @@ pub unsafe trait HartIdNumber: Copy {
77
79
78
80
/// Tries to convert a number to a valid HART ID.
79
81
/// If the conversion fails, it returns an error with the number back.
80
- fn from_number ( value : u16 ) -> Result < Self , u16 > ;
82
+ fn from_number ( value : u16 ) -> Result < Self > ;
81
83
}
You can’t perform that action at this time.
0 commit comments