diff --git a/src-tauri/src/commands/minify.rs b/src-tauri/src/commands/minify.rs index d575544..c4764eb 100644 --- a/src-tauri/src/commands/minify.rs +++ b/src-tauri/src/commands/minify.rs @@ -3,7 +3,7 @@ pub mod minify { #[tauri::command] pub async fn minifyhtml(input: String) -> Result { - let mut cfg = Cfg::new(); + let cfg = Cfg::new(); let minified = minify(input.as_bytes(), &cfg); String::from_utf8(minified).map_err(|e| e.to_string()) } diff --git a/src/Features/minifiers/Minify.tsx b/src/Features/minifiers/Minify.tsx index db96c77..2905fa9 100644 --- a/src/Features/minifiers/Minify.tsx +++ b/src/Features/minifiers/Minify.tsx @@ -48,7 +48,6 @@ export default function Minify() { useEffect(() => { setOutput(""); - // setInput(mode === "Beautify" ? beautifyIp : minifyIp); }, [mode]); const format = useCallback(async () => { @@ -185,7 +184,7 @@ export default function Minify() { setInput(e)} + setValue={(e) => setInput(e as string)} language={lang.toLowerCase()} />