Remove the need of writing to_string() everywhere in the tests by using `big_s`
bidoubiwa opened this issue · 2 comments
bidoubiwa commented
Currently, throughout the tests we are adding to_string()
everywhere. Which is tedious and reduces readability.
To clean the code, we should use the crate big_s
Todo
-
Add
big_s
to the repo as a dev dependenciescargo add big_s --dev
-
Import the library in every tests mod that needs it:
mod tests { use big_s::S; //...
-
Change all occurrences of for example
"something".to_string()
to `S("something")
romilpunetha commented
Why is this being used only for tests?