fix typos in variable and function names
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
parent
254a37ae07
commit
c88cdd7e67
@ -85,8 +85,8 @@ pub fn update_endpoint(
|
||||
let mut endpoint = get_endpoint(config, name)?;
|
||||
|
||||
if let Some(delete) = delete {
|
||||
for deleteable_property in delete {
|
||||
match deleteable_property {
|
||||
for deletable_property in delete {
|
||||
match deletable_property {
|
||||
DeleteableGotifyProperty::Comment => endpoint.comment = None,
|
||||
DeleteableGotifyProperty::Disable => endpoint.disable = None,
|
||||
}
|
||||
|
@ -73,8 +73,8 @@ pub fn update_matcher(
|
||||
let mut matcher = get_matcher(config, name)?;
|
||||
|
||||
if let Some(delete) = delete {
|
||||
for deleteable_property in delete {
|
||||
match deleteable_property {
|
||||
for deletable_property in delete {
|
||||
match deletable_property {
|
||||
DeleteableMatcherProperty::MatchSeverity => matcher.match_severity.clear(),
|
||||
DeleteableMatcherProperty::MatchField => matcher.match_field.clear(),
|
||||
DeleteableMatcherProperty::MatchCalendar => matcher.match_calendar.clear(),
|
||||
|
@ -78,8 +78,8 @@ pub fn update_endpoint(
|
||||
let mut endpoint = get_endpoint(config, name)?;
|
||||
|
||||
if let Some(delete) = delete {
|
||||
for deleteable_property in delete {
|
||||
match deleteable_property {
|
||||
for deletable_property in delete {
|
||||
match deletable_property {
|
||||
DeleteableSendmailProperty::FromAddress => endpoint.from_address = None,
|
||||
DeleteableSendmailProperty::Author => endpoint.author = None,
|
||||
DeleteableSendmailProperty::Comment => endpoint.comment = None,
|
||||
|
@ -96,8 +96,8 @@ pub fn update_endpoint(
|
||||
let mut endpoint = get_endpoint(config, name)?;
|
||||
|
||||
if let Some(delete) = delete {
|
||||
for deleteable_property in delete {
|
||||
match deleteable_property {
|
||||
for deletable_property in delete {
|
||||
match deletable_property {
|
||||
DeleteableSmtpProperty::Author => endpoint.author = None,
|
||||
DeleteableSmtpProperty::Comment => endpoint.comment = None,
|
||||
DeleteableSmtpProperty::Disable => endpoint.disable = None,
|
||||
|
@ -231,7 +231,7 @@ fn test_boolean_arg() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_argument_paramenter() {
|
||||
fn test_argument_parameter() {
|
||||
use proxmox_schema::*;
|
||||
|
||||
const PARAMETERS: ObjectSchema = ObjectSchema::new(
|
||||
|
@ -248,8 +248,8 @@ impl IntegerSchema {
|
||||
self
|
||||
}
|
||||
|
||||
pub const fn maximum(mut self, maximium: isize) -> Self {
|
||||
self.maximum = Some(maximium);
|
||||
pub const fn maximum(mut self, maximum: isize) -> Self {
|
||||
self.maximum = Some(maximum);
|
||||
self
|
||||
}
|
||||
|
||||
@ -323,8 +323,8 @@ impl NumberSchema {
|
||||
self
|
||||
}
|
||||
|
||||
pub const fn maximum(mut self, maximium: f64) -> Self {
|
||||
self.maximum = Some(maximium);
|
||||
pub const fn maximum(mut self, maximum: f64) -> Self {
|
||||
self.maximum = Some(maximum);
|
||||
self
|
||||
}
|
||||
|
||||
|
@ -1007,7 +1007,7 @@ fn test_section_config_with_additional_properties() {
|
||||
default_key: None,
|
||||
};
|
||||
|
||||
const USER_PROPERTIES_WITH_ADDTIONAL: ObjectSchema = ObjectSchema {
|
||||
const USER_PROPERTIES_WITH_ADDITIONAL: ObjectSchema = ObjectSchema {
|
||||
description: "user properties with additional",
|
||||
properties: &PROPERTIES,
|
||||
additional_properties: true,
|
||||
@ -1024,7 +1024,7 @@ fn test_section_config_with_additional_properties() {
|
||||
let plugin = SectionConfigPlugin::new(
|
||||
"user".to_string(),
|
||||
Some("userid".to_string()),
|
||||
&USER_PROPERTIES_WITH_ADDTIONAL,
|
||||
&USER_PROPERTIES_WITH_ADDITIONAL,
|
||||
);
|
||||
config_with_additional.register_plugin(plugin);
|
||||
|
||||
|
@ -444,16 +444,16 @@ fn test_rfc3339_range() {
|
||||
parse_rfc3339(first_century_str).expect("parsing first century string should work");
|
||||
assert_eq!(parsed, first_century);
|
||||
|
||||
let first_millenium = -59011459200;
|
||||
let first_millenium_str = "0100-01-01T00:00:00Z";
|
||||
let first_millennium = -59011459200;
|
||||
let first_millennium_str = "0100-01-01T00:00:00Z";
|
||||
|
||||
let converted = epoch_to_rfc3339_utc(first_millenium)
|
||||
.expect("converting epoch representing first millenium year should work");
|
||||
assert_eq!(converted, first_millenium_str);
|
||||
let converted = epoch_to_rfc3339_utc(first_millennium)
|
||||
.expect("converting epoch representing first millennium year should work");
|
||||
assert_eq!(converted, first_millennium_str);
|
||||
|
||||
let parsed =
|
||||
parse_rfc3339(first_millenium_str).expect("parsing first millenium string should work");
|
||||
assert_eq!(parsed, first_millenium);
|
||||
parse_rfc3339(first_millennium_str).expect("parsing first millennium string should work");
|
||||
assert_eq!(parsed, first_millennium);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Loading…
Reference in New Issue
Block a user