examples,tools: cleanup most warnings
parent
7a8d6a7c7b
commit
3f2133c65e
|
@ -27,7 +27,7 @@ pub fn validate_commit_exists(commit string) {
|
|||
if commit.len == 0 {
|
||||
return
|
||||
}
|
||||
cmd := "git cat-file -t \'$commit\' "
|
||||
cmd := "git cat-file -t '$commit' "
|
||||
if !scripting.exit_0_status(cmd) {
|
||||
eprintln('Commit: "$commit" does not exist in the current repository.')
|
||||
exit(3)
|
||||
|
|
|
@ -259,7 +259,7 @@ compdef _v v
|
|||
mut lines := []string{}
|
||||
list := auto_complete_request(sub_args[1..])
|
||||
for entry in list {
|
||||
lines << "COMPREPLY+=(\'$entry\')"
|
||||
lines << "COMPREPLY+=('$entry')"
|
||||
}
|
||||
println(lines.join('\n'))
|
||||
}
|
||||
|
@ -281,7 +281,7 @@ compdef _v v
|
|||
mut lines := []string{}
|
||||
list := auto_complete_request(sub_args[1..])
|
||||
for entry in list {
|
||||
lines << 'compadd -U -S \"\" -- \'$entry\';'
|
||||
lines << "compadd -U -S \"\" -- '$entry';"
|
||||
}
|
||||
println(lines.join('\n'))
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ fn main() {
|
|||
}
|
||||
|
||||
fn move(n int, a string, b string) int {
|
||||
println('Disc $n from $a to $b\...')
|
||||
println('Disc $n from $a to ${b}...')
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
// Simple raw HTTP head request
|
||||
import net
|
||||
import time
|
||||
import io
|
||||
|
||||
// Make a new connection
|
||||
|
|
Loading…
Reference in New Issue