Skip to content

Commit

Permalink
chore: update deprecated [<attr>] syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Nov 17, 2023
1 parent e2fdf9a commit 1a63b45
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion curl/state/codes.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// https://curl.se/libcurl/c/libcurl-errors.html
[generated]
@[generated]
module state

// TODO: check commented after debian 10 EOL, June 30, 2024. Compare Ubuntu LTS 22.04 with Debian 11.
Expand Down
2 changes: 1 addition & 1 deletion curl/state/info.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// https://curl.se/libcurl/c/easy_getinfo_options.html
[generated]
@[generated]
module state

// TODO: check commented after debian 10 EOL, June 30, 2024. Compare Ubuntu LTS 22.04 with Debian 11.
Expand Down
2 changes: 1 addition & 1 deletion curl/state/opts.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// https://curl.se/libcurl/c/easy_setopt_options.html
[generated]
@[generated]
module state

// TODO: check commented after debian 10 EOL, June 30, 2024. Compare Ubuntu LTS 22.04 with Debian 11.
Expand Down
2 changes: 1 addition & 1 deletion src/_instructions_header.v
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn set_header(handle &curl.Handle, headers HttpHeaders) &curl.LinkedList {
}

// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers
[generated]
@[generated]
pub fn (header HttpHeader) str() string {
return match header {
.accept { 'Accept' }
Expand Down
2 changes: 1 addition & 1 deletion src/_instructions_status.v
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn (mut resp VibeResponse) get_http_version() ! {
}

// https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
[generated]
@[generated]
fn (status_code Status) msg_() string {
return match status_code {
100 { 'Continue' }
Expand Down
4 changes: 2 additions & 2 deletions src/_state_header.v
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ module vibe

type Status = int

[params]
@[params]
struct HttpHeaders {
common map[HttpHeader]string
custom map[string]string
}

// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers
[generated]
@[generated]
pub enum HttpHeader {
accept
accept_ch
Expand Down

0 comments on commit 1a63b45

Please sign in to comment.