We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc6c8f9 commit 2d4f81cCopy full SHA for 2d4f81c
aml/src/lib.rs
@@ -796,6 +796,9 @@ pub enum AmlError {
796
TypeCannotBeSliced(AmlType),
797
TypeCannotBeWrittenToBufferField(AmlType),
798
BufferFieldIndexesOutOfBounds,
799
+
800
+ /// Unimplemented functionality - return error rather than abort
801
+ Unimplemented,
802
}
803
804
#[cfg(test)]
aml/src/term_object.rs
@@ -868,9 +868,8 @@ where
868
if let Ok((_name, _handle)) = handle {
869
match target {
870
Target::Null => { /* just return the result of the check */ }
871
- _ => todo!(),
+ _ => {return (Err(Propagate::Err(AmlError::Unimplemented)), context) },
872
873
-
874
875
(Ok(result), context)
876
}),
0 commit comments