From 573bfe46dd086d719959f46872b7182d7d7590e9 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Mon, 17 Jan 2022 07:50:29 +0800 Subject: [PATCH] Fix formatting. --- src/module/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module/mod.rs b/src/module/mod.rs index dc0dcc76..51ce2653 100644 --- a/src/module/mod.rs +++ b/src/module/mod.rs @@ -101,7 +101,7 @@ impl FuncInfo { match typ { "" | "()" => "".into(), RHAI_RESULT_TYPE => RHAI_RESULT_TYPE_EXPAND.into(), - ty if ty.starts_with(RHAI_RESULT_OF_TYPE) && ty.ends_with(">") => { + ty if ty.starts_with(RHAI_RESULT_OF_TYPE) && ty.ends_with('>') => { RHAI_RESULT_OF_TYPE_EXPAND .replace("{}", ty[RHAI_RESULT_OF_TYPE.len()..ty.len() - 1].trim()) .into()