mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
rust/pv_core: Remove unnecessary mirrored constants
They add no value and code outside the crate does not need those constants. Reduces unnecessary constant duplication. Introduce an error for to large Add-Secret requests and check for this to render those contsnts fully unnecessary for the API. Signed-off-by: Steffen Eiden <seiden@linux.ibm.com> Reviewed-by: Julian Ruess <julianr@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
9eab43994b
commit
a2e556858a
@@ -44,6 +44,9 @@ pub enum Error {
|
||||
#[error("Input does not contain an add-secret request")]
|
||||
NoAsrcb,
|
||||
|
||||
#[error("Input add-secret request is larger than 8k")]
|
||||
AscrbLarge,
|
||||
|
||||
#[error("Input contains unsupported user-data type: {0:#06x}")]
|
||||
UnsupportedUserData(u16),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user