From 6ce45636558cedc689e4dce08c0447ec33720170 Mon Sep 17 00:00:00 2001 From: AshleyFlow Date: Thu, 17 Oct 2024 12:40:29 +0330 Subject: [PATCH] fix typo --- crates/lune-std/src/luaurc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/lune-std/src/luaurc.rs b/crates/lune-std/src/luaurc.rs index b5d6d0b..ef61d12 100644 --- a/crates/lune-std/src/luaurc.rs +++ b/crates/lune-std/src/luaurc.rs @@ -48,7 +48,7 @@ pub enum LuaurcError { #[error("Failed to find a path for alias '{0}' in .luaurc files")] FailedToFindAlias(String), #[error("Failed to parse {0}\nParserError: {1}")] - FilaedToParse(PathBuf, serde_json::Error), + FailedToParse(PathBuf, serde_json::Error), #[error("IOError: {0}")] IOError(#[from] std::io::Error), @@ -94,7 +94,7 @@ async fn parse_luaurc(_: &mlua::Lua, path: &PathBuf) -> Result, L if let Ok(content) = fs::read(path).await { serde_json::from_slice(&content) .map(Some) - .map_err(|err| LuaurcError::FilaedToParse(path.clone(), err)) + .map_err(|err| LuaurcError::FailedToParse(path.clone(), err)) } else { Ok(None) }