From 52ad2f0af000508d1ba5374e72d549cf5c965c15 Mon Sep 17 00:00:00 2001 From: Martin Habovstiak Date: Wed, 3 Mar 2021 12:03:18 +0100 Subject: [PATCH] Fixed inverted logic of deprecation The warning was supposed to be shown when `cookie` is specified not the other way around. --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 39fd92b90..fdfe41e80 100644 --- a/src/config.rs +++ b/src/config.rs @@ -173,7 +173,7 @@ fn create_cookie_getter( /// Processes deprecation of cookie in favor of auth fn select_auth(auth: Option, cookie: Option) -> Option { - match (auth, cookie) { + match (cookie, auth) { (None, None) => None, (Some(value), None) => { eprintln!("WARNING: cookie option is deprecated and will be removed in the future!");