diff --git a/proxmox-api/src/const_regex.rs b/proxmox-api/src/const_regex.rs index 91d182ca..8541f660 100644 --- a/proxmox-api/src/const_regex.rs +++ b/proxmox-api/src/const_regex.rs @@ -1,4 +1,3 @@ - use std::fmt; /// Helper to represent const regular expressions diff --git a/proxmox-api/src/schema.rs b/proxmox-api/src/schema.rs index 79bb0a41..e38e54af 100644 --- a/proxmox-api/src/schema.rs +++ b/proxmox-api/src/schema.rs @@ -25,7 +25,6 @@ pub struct ParameterError { // fixme: record parameter names, to make it usefull to display errord // on HTML forms. impl ParameterError { - pub fn new() -> Self { Self { error_list: Vec::new(), @@ -504,7 +503,6 @@ pub fn parse_boolean(value_str: &str) -> Result { /// Parse a complex property string (`ApiStringFormat::PropertyString`) pub fn parse_property_string(value_str: &str, schema: &Schema) -> Result { - match schema { Schema::Object(object_schema) => { let mut param_list: Vec<(String, String)> = vec![];