Skip to content

Commit

Permalink
fix: missing double quotation for stmt hook
Browse files Browse the repository at this point in the history
  • Loading branch information
momeemt committed Oct 18, 2024
1 parent 8010d88 commit ffc4bd8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/stmt.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use brack_pdk_rs::{metadata::Metadata, values::Value, types::Type};
use brack_pdk_rs::{metadata::Metadata, types::Type, values::Value};
use extism_pdk::{plugin_fn, FnResult, Json, WithReturnCode};

pub(crate) fn metadata_stmt() -> Metadata {
Expand All @@ -24,10 +24,13 @@ pub fn stmt(Json(args): Json<Vec<Value>>) -> FnResult<String> {
))
}
};
Ok(format!("{{
Ok(format!(
"{{
\"t\": \"Para\",
\"c\": [
{}
\"{}\"
]
}},", text))
}},",
text
))
}

0 comments on commit ffc4bd8

Please sign in to comment.