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 22
33pub mod result;
44
5+ use result:: Result ;
6+
57/// Trait for enums of target-specific external interrupt numbers.
68///
79/// This trait should be implemented by a peripheral access crate (PAC)
@@ -25,7 +27,7 @@ pub unsafe trait InterruptNumber: Copy {
2527
2628 /// Tries to convert a number to a valid interrupt source.
2729 /// 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 > ;
2931}
3032
3133/// Trait for enums of priority levels.
@@ -51,7 +53,7 @@ pub unsafe trait PriorityNumber: Copy {
5153
5254 /// Tries to convert a number to a valid priority level.
5355 /// 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 > ;
5557}
5658
5759/// Trait for enums of HART identifiers.
@@ -77,5 +79,5 @@ pub unsafe trait HartIdNumber: Copy {
7779
7880 /// Tries to convert a number to a valid HART ID.
7981 /// 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 > ;
8183}
You can’t perform that action at this time.
0 commit comments