clippy: allow some instances of ptr_arg

Signed-off-by: ljedrz <ljedrz@gmail.com>
This commit is contained in:
ljedrz 2020-10-06 10:49:36 +02:00
parent ea3542b30e
commit e6e6e9c234
2 changed files with 2 additions and 0 deletions

View File

@ -95,6 +95,7 @@ impl Input {
}
/// Returns the main function input value with the given `name`
#[allow(clippy::ptr_arg)]
pub fn get(&self, name: &String) -> Option<Option<InputValue>> {
self.program_input.get(name)
}

View File

@ -65,6 +65,7 @@ impl ProgramInput {
}
/// Returns the main function input value with the given `name`
#[allow(clippy::ptr_arg)]
pub fn get(&self, name: &String) -> Option<Option<InputValue>> {
self.main.get(name)
}