mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
rust: Fix cargo clippy and cargo doc findings
Fix the new `cargo clippy` and `cargo doc` findings that were triggered with the recent policy addition. Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
committed by
Steffen Eiden
parent
2155b83c1f
commit
667a8d714b
@@ -141,7 +141,7 @@ fn build_asrcb(opt: &CreateSecretOpt) -> Result<AddSecretRequest> {
|
||||
// Try to extract a Config-UId from a yaml structure
|
||||
// The cuid field can be embedded in an abritray amount of Mappings
|
||||
// The function takes the first cuid it founds (width search).
|
||||
fn try_from_val(val: Value) -> anyhow::Result<ConfigUid> {
|
||||
fn try_from_val(val: Value) -> Result<ConfigUid> {
|
||||
fn get_cuid_from_mapping(val: &Value, depth: u8) -> Option<String> {
|
||||
if depth >= 8 {
|
||||
return None;
|
||||
|
||||
Reference in New Issue
Block a user