Skip to content

Commit

Permalink
🎨 run v fmt -w .
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed May 25, 2024
1 parent 9c5fc1c commit 7109e50
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
12 changes: 5 additions & 7 deletions src/init_d_embed.v
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import os

const (
// Example of two static embedded files.
icon = $embed_file('../assets/emoji-mart.ico')
// Note: Currently, this one must be in a differnt dir, else V embeds the wrong file.
// Else the path would be `../assets/pop.wav`.
sound = $embed_file('../assets/audio/pop.wav')
)
// Example of two static embedded files.
const icon = $embed_file('../assets/emoji-mart.ico')
// Note: Currently, this one must be in a differnt dir, else V embeds the wrong file.
// Else the path would be `../assets/pop.wav`.
const sound = $embed_file('../assets/audio/pop.wav')

fn init() {
write_embedded() or {
Expand Down
6 changes: 2 additions & 4 deletions src/paths.v
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ mut:
cache_file string
}

const (
app_name = 'emoji-mart'
paths = get_paths()!
)
const app_name = 'emoji-mart'
const paths = get_paths()!

fn get_paths() !Paths {
mut p := Paths{}
Expand Down

0 comments on commit 7109e50

Please sign in to comment.