1
0
Fork 0
forked from AbleOS/ableos

fixing the optional formatting

Signed-off-by: Jakub Doka <jakub.doka2@gmail.com>
This commit is contained in:
Jakub Doka 2024-12-18 00:08:59 +01:00
parent 04ca5f07d5
commit dc4878bc2b
No known key found for this signature in database
GPG key ID: C6E9A89936B8C143
3 changed files with 6 additions and 5 deletions

6
Cargo.lock generated
View file

@ -213,12 +213,12 @@ dependencies = [
[[package]]
name = "hbbytecode"
version = "0.1.0"
source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#e769fa8dbad4d69ccab9e13112e20be4b8bd91bf"
source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#f05c61a99e87f312992419dc10c8ce62a3469449"
[[package]]
name = "hblang"
version = "0.1.0"
source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#e769fa8dbad4d69ccab9e13112e20be4b8bd91bf"
source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#f05c61a99e87f312992419dc10c8ce62a3469449"
dependencies = [
"hashbrown",
"hbbytecode",
@ -229,7 +229,7 @@ dependencies = [
[[package]]
name = "hbvm"
version = "0.1.0"
source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#e769fa8dbad4d69ccab9e13112e20be4b8bd91bf"
source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#f05c61a99e87f312992419dc10c8ce62a3469449"
dependencies = [
"hbbytecode",
]

View file

@ -15,6 +15,7 @@ fatfs = { version = "0.3", default-features = false, features = [
] }
toml = "0.8"
hblang.git = "https://git.ablecorp.us/AbleOS/holey-bytes.git"
#hblang.path = "../../holey-bytes/lang/"
log = "0.4"
raw-cpuid = "11"
ureq = { version = "2", default-features = false, features = ["tls"] }

View file

@ -143,7 +143,7 @@ fmt_nullable := fn(v: @Any(), str: ^u8, opts: FormatOptions): uint {
*@as(^[u8; 4], @bitcast(str)) = *@bitcast("null\0")
return 4
} else {
return @inline(fmt_inner, @unwrap(v), str, opts)
return @inline(fmt_inner, @as(@ChildOf(@TypeOf(v)), v), str, opts)
}
}
@ -190,4 +190,4 @@ format_args := fn(v: @Any(), str: ^u8, opts: FormatOptions): ^u8 {
@inline(string.clear, str)
_ = @inline(fmt_inner, v, str, opts)
return str
}
}