We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5975a4 commit 887ffd1Copy full SHA for 887ffd1
vm/src/cformat.rs
@@ -293,7 +293,10 @@ pub(crate) fn cformat_bytes(
293
CFormatPart::Literal(literal) => result.append(literal),
294
CFormatPart::Spec(spec) => {
295
let value = match &spec.mapping_key {
296
- Some(key) => values_obj.get_item(key.as_str(), vm)?,
+ Some(key) => {
297
+ let k = vm.ctx.new_bytes(key.as_str().as_bytes().to_vec());
298
+ values_obj.get_item(k.as_object(), vm)?
299
+ }
300
None => unreachable!(),
301
};
302
let mut part_result = spec_format_bytes(vm, spec, value)?;
0 commit comments