diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2024-08-10 18:16:26 +0200 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2024-08-10 18:16:26 +0200 |
| commit | 64b23cd4ca41bfd44a83f945b0704df1021e7c9c (patch) | |
| tree | 0f2620f2c45d0fba965a94ab1665b5d4d06c986f /src/server/response.odin | |
| parent | fe8353ad6e852275570b6fb90e472f3f96d445f7 (diff) | |
Change odinfmt to use 120 characters instead. Add support for infering Maybe in comp literals.
Diffstat (limited to 'src/server/response.odin')
| -rw-r--r-- | src/server/response.odin | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/server/response.odin b/src/server/response.odin index 916f1b1..1019eb6 100644 --- a/src/server/response.odin +++ b/src/server/response.odin @@ -1,12 +1,9 @@ package server -import "core:fmt" import "core:encoding/json" +import "core:fmt" -send_notification :: proc( - notification: Notification, - writer: ^Writer, -) -> bool { +send_notification :: proc(notification: Notification, writer: ^Writer) -> bool { data, error := marshal(notification, {}, context.temp_allocator) header := fmt.tprintf("Content-Length: %v\r\n\r\n", len(data)) |