mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
style(dynamic): improve code readability by reformatting long lines and aligning nested structures
This commit is contained in:
parent
d3bfd6c848
commit
e64fb25dae
8 changed files with 54 additions and 23 deletions
|
|
@ -3326,14 +3326,16 @@ fn invoke_for_shape(spec: &HarnessSpec, shape: JavaShape, entry_class: &str) ->
|
|||
" String[] mainArgs = new String[] {{ payload }};\n {entry_class}.main(mainArgs);"
|
||||
),
|
||||
JavaShape::ServletDoGet => {
|
||||
let slots = slot_names_java_array(&servlet_slot_names(&read_entry_source(&spec.entry_file)));
|
||||
let slots =
|
||||
slot_names_java_array(&servlet_slot_names(&read_entry_source(&spec.entry_file)));
|
||||
let drain = servlet_drain_response(spec);
|
||||
format!(
|
||||
" invokeServlet({entry_class}.class, \"doGet\", payload, \"GET\", {slots}, {drain});"
|
||||
)
|
||||
}
|
||||
JavaShape::ServletDoPost => {
|
||||
let slots = slot_names_java_array(&servlet_slot_names(&read_entry_source(&spec.entry_file)));
|
||||
let slots =
|
||||
slot_names_java_array(&servlet_slot_names(&read_entry_source(&spec.entry_file)));
|
||||
let drain = servlet_drain_response(spec);
|
||||
format!(
|
||||
" invokeServlet({entry_class}.class, \"doPost\", payload, \"POST\", {slots}, {drain});"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue