Skip to content

Commit 6540b17

Browse files
committed
chore: format with updated v fmt
1 parent 5ff0e4e commit 6540b17

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

build.vsh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,27 +124,27 @@ fn run(cmd cli.Command) ! {
124124
// == Commands ================================================================
125125

126126
mut cmd := cli.Command{
127-
name: 'build.vsh'
128-
posix_mode: true
127+
name: 'build.vsh'
128+
posix_mode: true
129129
required_args: 0
130-
pre_execute: fn (cmd cli.Command) ! {
130+
pre_execute: fn (cmd cli.Command) ! {
131131
if cmd.args.len > cmd.required_args {
132132
eprintln('Unknown commands ${cmd.args}.\n')
133133
cmd.execute_help()
134134
exit(0)
135135
}
136136
}
137-
execute: run
138-
commands: [
137+
execute: run
138+
commands: [
139139
cli.Command{
140-
name: 'docs'
140+
name: 'docs'
141141
description: 'Build docs used for GitHub pages.'
142-
execute: fn (_ cli.Command) ! {
142+
execute: fn (_ cli.Command) ! {
143143
build_docs() or { eprintln('Failed building docs. ${err}') }
144144
}
145145
},
146146
]
147-
flags: [
147+
flags: [
148148
cli.Flag{
149149
flag: .bool
150150
name: 'silent'

src/lib.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ pub enum Hint {
5757
// Window size can not be changed by a user.
5858
fixed = C.WEBVIEW_HINT_FIXED
5959
// Width and height are minimum bounds.
60-
min = C.WEBVIEW_HINT_MIN
60+
min = C.WEBVIEW_HINT_MIN
6161
// Width and height are maximum bounds.
62-
max = C.WEBVIEW_HINT_MAX
62+
max = C.WEBVIEW_HINT_MAX
6363
}
6464

6565
pub const no_result = unsafe { nil }
@@ -79,7 +79,7 @@ pub fn create(opts CreateOptions) &Webview {
7979
dbg := if opt := opts.debug {
8080
opt
8181
} else {
82-
webview.debug
82+
debug
8383
}
8484
return &Webview{C.webview_create(int(dbg), opts.window), unsafe { nil }}
8585
}

0 commit comments

Comments
 (0)