diff --git a/src/compile.rs b/src/compile.rs index 24df923..d02d3d3 100644 --- a/src/compile.rs +++ b/src/compile.rs @@ -2108,10 +2108,17 @@ impl Compiler { conversion, spec, } => { + match spec { + Some(spec) => self.compile_string(spec)?, + None => self.emit(Instruction::LoadConst { + value: bytecode::Constant::String { + value: String::new(), + }, + }), + }; self.compile_expression(value)?; self.emit(Instruction::FormatValue { conversion: conversion.map(compile_conversion_flag), - spec: spec.clone(), }); } }