html terminal
Diffstat (limited to 'src/bot/schematic.rs')
-rw-r--r--src/bot/schematic.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bot/schematic.rs b/src/bot/schematic.rs
index 721a414..207edca 100644
--- a/src/bot/schematic.rs
+++ b/src/bot/schematic.rs
@@ -9,7 +9,8 @@ use std::borrow::Cow;
use std::path::Path;
use std::sync::LazyLock;
-static RE: LazyLock<Regex> = LazyLock::new(|| Regex::new(r#"(```)?(\n)?([^`]+)(\n)?(```)?"#).unwrap());
+static RE: LazyLock<Regex> =
+ LazyLock::new(|| Regex::new(r#"(```)?(\n)?([^`]+)(\n)?(```)?"#).unwrap());
static REG: LazyLock<mindus::block::BlockRegistry> = LazyLock::new(build_registry);
#[poise::command(context_menu_command = "Render schematic", category = "Info")]
@@ -81,6 +82,8 @@ async fn draw_impl(ctx: Context<'_>, msg: &str, send_schematic: bool) -> Result<
.get(3)
.unwrap()
.as_str();
- let s = ss.deserialize_base64(schem_text).map_err(|e| anyhow!("schematic deserializatiion failed: {e}"))?;
+ let s = ss
+ .deserialize_base64(schem_text)
+ .map_err(|e| anyhow!("schematic deserializatiion failed: {e}"))?;
send(&ctx, &s, send_schematic).await
}