diff --git a/plugins/wasm-rust/src/plugin_wrapper.rs b/plugins/wasm-rust/src/plugin_wrapper.rs index 76e8d1a05b..ba4e0a2580 100644 --- a/plugins/wasm-rust/src/plugin_wrapper.rs +++ b/plugins/wasm-rust/src/plugin_wrapper.rs @@ -14,12 +14,11 @@ use crate::rule_matcher::SharedRuleMatcher; use multimap::MultiMap; +use proxy_wasm::hostcalls::log; use proxy_wasm::traits::{Context, HttpContext, RootContext}; +use proxy_wasm::types::LogLevel; use proxy_wasm::types::{Action, Bytes, DataAction, HeaderAction}; use serde::de::DeserializeOwned; -use proxy_wasm::hostcalls::log; -use proxy_wasm::types::LogLevel; - pub trait RootContextWrapper: RootContext where @@ -155,8 +154,13 @@ where Err(_) => { log( LogLevel::Warn, - format!("request http header contains non-ASCII characters header: {}", k ).as_str(), - ).unwrap(); + format!( + "request http header contains non-ASCII characters header: {}", + k + ) + .as_str(), + ) + .unwrap(); } } } @@ -210,8 +214,13 @@ where Err(_) => { log( LogLevel::Warn, - format!("response http header contains non-ASCII characters header: {}", k ).as_str(), - ).unwrap(); + format!( + "response http header contains non-ASCII characters header: {}", + k + ) + .as_str(), + ) + .unwrap(); } } }