addons middleware: fix applying a lint
@@ -15,7 +15,7 @@ impl<T: Environment> AddonsMiddleware<T> {
}
fn for_request(&self, resource_req: ResourceRequest, emit: Rc<DispatcherFn>) {
// @TODO use transport abstraction
- let url_pathname = if resource_req.resource_ref.extra.is_empty() {
+ let url_pathname = if !resource_req.resource_ref.extra.is_empty() {
let mut extra_encoded = form_urlencoded::Serializer::new(String::new());
for (k, v) in resource_req.resource_ref.extra.iter() {
extra_encoded.append_pair(&k, &v);
