Skip to content

Commit

Permalink
solve clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnicola committed Oct 18, 2024
1 parent f7aa129 commit cd6be80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rust/src/nasl/interpreter/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use crate::nasl::utils::ContextType;
use std::collections::HashMap;

impl<'a> Interpreter<'a> {
#[allow(clippy::single_match)]
pub async fn call(&mut self, name: &Token, arguments: &[Statement]) -> InterpretResult {
let name = &Self::identifier(name)?;
// get the context
Expand Down Expand Up @@ -82,8 +83,8 @@ impl<'a> Interpreter<'a> {
// prepare default values
for p in params {
match self.register().named(&p) {
// add default NaslValue::Null for each defined params
None => {
// add default NaslValue::Null for each defined params
self.register_mut()
.add_local(&p, ContextType::Value(NaslValue::Null));
}
Expand Down

0 comments on commit cd6be80

Please sign in to comment.