Skip to content

Commit

Permalink
perf: remove unneeded assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed May 19, 2024
1 parent 5f0c8b9 commit 0ddb24e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/_instructions_write_fns.v
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ module vibe

fn write_resp(data &char, size usize, nmemb usize, mut resp VibeResponse) usize {
n := size * nmemb
resp.pos += n
resp.body += unsafe { data.vstring_with_len(int(n)) }
return n
}

fn write_resp_header(data &char, size usize, nmemb usize, mut resp VibeResponse) usize {
n := size * nmemb
resp.pos += n
resp.header += unsafe { data.vstring_with_len(int(n)) }
return n
}
Expand Down

0 comments on commit 0ddb24e

Please sign in to comment.