Skip to content

Commit ffc4bd8

Browse files
committed
fix: missing double quotation for stmt hook
1 parent 8010d88 commit ffc4bd8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/stmt.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use brack_pdk_rs::{metadata::Metadata, values::Value, types::Type};
1+
use brack_pdk_rs::{metadata::Metadata, types::Type, values::Value};
22
use extism_pdk::{plugin_fn, FnResult, Json, WithReturnCode};
33

44
pub(crate) fn metadata_stmt() -> Metadata {
@@ -24,10 +24,13 @@ pub fn stmt(Json(args): Json<Vec<Value>>) -> FnResult<String> {
2424
))
2525
}
2626
};
27-
Ok(format!("{{
27+
Ok(format!(
28+
"{{
2829
\"t\": \"Para\",
2930
\"c\": [
30-
{}
31+
\"{}\"
3132
]
32-
}},", text))
33+
}},",
34+
text
35+
))
3336
}

0 commit comments

Comments
 (0)