Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Dec 18, 2024
1 parent 2fa6d8b commit 756fc91
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion libs/sqf/src/analyze/inspector/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ impl SciptScope {
for type_p in &arg_array[2] {
if let GameValue::Array(Some(type_array)) = type_p {
for type_i in type_array {
var_types.extend(type_i.iter().map(GameValue::make_generic));
var_types
.extend(type_i.iter().map(GameValue::make_generic));
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion libs/sqf/src/analyze/inspector/external_functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ impl SciptScope {
}
}
}
"cba_fnc_addperframehandler" | "cba_fnc_waitandexecute" | "cba_fnc_execnextframe" => {
"cba_fnc_addperframehandler"
| "cba_fnc_waitandexecute"
| "cba_fnc_execnextframe" => {
if !gv_array.is_empty() {
self.external_new_scope(&gv_array[0], &vec![], database);
}
Expand Down
4 changes: 2 additions & 2 deletions libs/sqf/src/analyze/inspector/game_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ impl GameValue {
Self::ForType(_) => Self::ForType(None),
Self::Number(_) => Self::Number(None),
Self::String(_) => Self::String(None),
_ => self.clone()
}
_ => self.clone(),
}
}
#[must_use]
/// Get as a string for debugging
Expand Down

0 comments on commit 756fc91

Please sign in to comment.