From 04a4a21b7333aad2e7eeb16d1d7b24205b405906 Mon Sep 17 00:00:00 2001 From: Alexander Mironov Date: Sun, 13 Nov 2022 16:45:51 +0300 Subject: [PATCH] Remove nightly only feature --- src/network/utils.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/network/utils.rs b/src/network/utils.rs index 12aab2f..2b7ddaa 100644 --- a/src/network/utils.rs +++ b/src/network/utils.rs @@ -41,15 +41,18 @@ pub enum DataType { } /// where to insert parameters -#[derive(Debug, Clone, PartialEq, Serialize, Copy, Default)] +#[derive(Debug, Clone, PartialEq, Serialize, Copy)] pub enum InjectionPlace { - #[default] Path, Body, Headers, HeaderValue, } +impl Default for InjectionPlace { + fn default() -> Self { InjectionPlace::Path } +} + pub trait Headers { fn contains_key(&self, key: &str) -> bool; fn get_value(&self, key: &str) -> Option;