diff options
-rwxr-xr-x | src/lib.rs | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -26,7 +26,6 @@ mod codegen { include!(concat!(env!("OUT_DIR"), "/codegen.rs")); } -use std::borrow::Borrow; use std::io::{self, Write}; use std::fs::OpenOptions; use std::path::Path; @@ -72,8 +71,8 @@ impl Builder { self } - pub fn whitelisted_type<T: Borrow<str>>(mut self, arg: &T) -> Builder { - self.options.whitelisted_types.insert(arg); + pub fn whitelisted_type<T: Into<String>>(mut self, arg: T) -> Builder { + self.options.whitelisted_types.insert(&arg.into()); self } |