fix: default clippy lints
This commit is contained in:
@@ -141,14 +141,12 @@ mod print_debug_functions {
|
||||
|
||||
/// Return the empty string.
|
||||
#[rhai_fn(name = "print", name = "to_string")]
|
||||
pub fn print_unit(ctx: NativeCallContext, unit: ()) -> ImmutableString {
|
||||
let _ = unit;
|
||||
pub fn print_unit(ctx: NativeCallContext, _unit: ()) -> ImmutableString {
|
||||
ctx.engine().const_empty_string()
|
||||
}
|
||||
/// Convert the unit into a string in debug format.
|
||||
#[rhai_fn(name = "debug", name = "to_debug")]
|
||||
pub fn debug_unit(unit: ()) -> ImmutableString {
|
||||
let _ = unit;
|
||||
pub fn debug_unit(_unit: ()) -> ImmutableString {
|
||||
"()".into()
|
||||
}
|
||||
|
||||
|
@@ -84,8 +84,7 @@ mod string_functions {
|
||||
}
|
||||
|
||||
#[rhai_fn(name = "+")]
|
||||
pub fn add_append_unit(string: ImmutableString, item: ()) -> ImmutableString {
|
||||
let _ = item;
|
||||
pub fn add_append_unit(string: ImmutableString, _item: ()) -> ImmutableString {
|
||||
string
|
||||
}
|
||||
#[rhai_fn(name = "+")]
|
||||
@@ -102,9 +101,8 @@ mod string_functions {
|
||||
*string += character;
|
||||
}
|
||||
#[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;
|
||||
let _ = item;
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "no_index"))]
|
||||
|
Reference in New Issue
Block a user