From f5e787f2df1cd13d4911dca998c330570789213e Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Tue, 11 Mar 2025 18:51:29 -0400 Subject: [PATCH] refactor: use .display() on PathBuf --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 8d98330..b78b430 100644 --- a/src/main.rs +++ b/src/main.rs @@ -60,7 +60,8 @@ async fn main() -> anyhow::Result<()> { lua::register_globals(&lua, &globals, event_listeners.clone())?; globals.set("SCRIPT_PATH", &*script_path)?; lua.load( - read_to_string(&script_path).with_context(|| format!("failed to read {script_path:?}"))?, + read_to_string(&script_path) + .with_context(|| format!("failed to read {}", script_path.display()))?, ) .exec()?; if let Some(code) = args.exec {