You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
When building pagefind_web by ./local_build.sh, I encountered warnings about unused variables in the src/lib.rs file.
[INFO]: 🌀 Compiling to Wasm... Compiling pagefind_web v0.0.0 (/**/pagefind/pagefind_web)warning: unused variable: `e` --> src/lib.rs:118:13 |118 | Err(e) => { | ^ help: if this is intentional, prefix it with an underscore: `_e` | = note: `#[warn(unused_variables)]` on by defaultwarning: unused variable: `e` --> src/lib.rs:174:13 |174 | Err(e) => { | ^ help: if this is intentional, prefix it with an underscore: `_e`warning: unused variable: `e` --> src/lib.rs:188:13 |188 | Err(e) => { | ^ help: if this is intentional, prefix it with an underscore: `_e`
The warnings are caused by the usage of e as shown below:
Avoiding warnings while keeping this implementation simple may be a little difficult. It may be acceptable to add #[allow(unused_variables)] to suppress warnings.
I can create a PR to address the issue. Thank you
The text was updated successfully, but these errors were encountered:
Hi,
When building
pagefind_web
by./local_build.sh
, I encountered warnings about unused variables in thesrc/lib.rs
file.The warnings are caused by the usage of
e
as shown below:Avoiding warnings while keeping this implementation simple may be a little difficult. It may be acceptable to add
#[allow(unused_variables)]
to suppress warnings.I can create a PR to address the issue. Thank you
The text was updated successfully, but these errors were encountered: