fix typos in variable and function names

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
Maximiliano Sandoval 2024-07-18 15:05:33 +02:00 committed by Thomas Lamprecht
parent 254a37ae07
commit c88cdd7e67
8 changed files with 22 additions and 22 deletions

View File

@ -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,
}

View File

@ -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(),

View File

@ -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,

View File

@ -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,

View File

@ -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(

View File

@ -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
}

View File

@ -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);

View File

@ -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]