fix<doc>: rename _item for item

This commit is contained in:
Mathieu Lala 2023-02-10 11:04:14 +01:00
parent 8e5b280d8a
commit 3523941fee
No known key found for this signature in database
GPG Key ID: C5D308ABEB84866F

View File

@ -83,12 +83,14 @@ mod string_functions {
buf.into() buf.into()
} }
#[allow(unused_variables)]
#[rhai_fn(name = "+")] #[rhai_fn(name = "+")]
pub fn add_append_unit(string: ImmutableString, _item: ()) -> ImmutableString { pub fn add_append_unit(string: ImmutableString, item: ()) -> ImmutableString {
string string
} }
#[allow(unused_variables)]
#[rhai_fn(name = "+")] #[rhai_fn(name = "+")]
pub fn add_prepend_unit(_item: (), string: ImmutableString) -> ImmutableString { pub fn add_prepend_unit(item: (), string: ImmutableString) -> ImmutableString {
string string
} }
@ -100,10 +102,9 @@ mod string_functions {
pub fn add_assign_append_char(string: &mut ImmutableString, character: char) { pub fn add_assign_append_char(string: &mut ImmutableString, character: char) {
*string += character; *string += character;
} }
#[allow(unused_variables)]
#[rhai_fn(name = "+=")] #[rhai_fn(name = "+=")]
pub fn add_assign_append_unit(string: &mut ImmutableString, _item: ()) { pub fn add_assign_append_unit(string: &mut ImmutableString, item: ()) {}
let _ = string;
}
#[cfg(not(feature = "no_index"))] #[cfg(not(feature = "no_index"))]
pub mod blob_functions { pub mod blob_functions {