diff options
| -rw-r--r-- | mingling_picker/src/parselib/style.rs | 4 | ||||
| -rw-r--r-- | mingling_picker/src/picker.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mingling_picker/src/parselib/style.rs b/mingling_picker/src/parselib/style.rs index a2a7393..434b545 100644 --- a/mingling_picker/src/parselib/style.rs +++ b/mingling_picker/src/parselib/style.rs @@ -144,10 +144,10 @@ impl ParserStyleNamingCase { /// use mingling_picker::parselib::ParserStyleNamingCase; /// /// let camel = ParserStyleNamingCase::Camel; - /// assert_eq!(camel.convert("brew_coffee"), "brewCoffee"); + /// assert_eq!(camel.convert("brew_coffee".to_string()), "brewCoffee"); /// /// let kebab = ParserStyleNamingCase::Kebab; - /// assert_eq!(kebab.convert("BrewCoffee"), "brew-coffee"); + /// assert_eq!(kebab.convert("BrewCoffee".to_string()), "brew-coffee"); /// ``` pub fn convert<S>(&self, s: S) -> S where diff --git a/mingling_picker/src/picker.rs b/mingling_picker/src/picker.rs index eea9611..396b05e 100644 --- a/mingling_picker/src/picker.rs +++ b/mingling_picker/src/picker.rs @@ -17,7 +17,7 @@ use crate::{Pickable, PickerArgResult, PickerFlag}; /// - Basic arguments /// - Parsing states /// - Parsing results -pub struct Picker<'a, Route> { +pub struct Picker<'a, Route = ()> { route_phantom: PhantomData<Route>, /// Internal arguments of Picker |
