Closed hseeberger closed 1 year ago
Thanks. I wonder if you’d need it though? Paths are hardly ever literals.
Not necessarily literals, but what about strings, e.g. from config files?
As I wrote, Into<PathBuf>
also works for String
s, because there's an From<String>
impl for PathBuf
.
As I wrote,
Into<PathBuf>
also works forString
s, because there's anFrom<String>
impl forPathBuf
.
I really should read what you write more thoroughly! ;-)
I really should read what you write more thoroughly! ;-)
LOL
This would allow for something like
FileLog::new("foo")
.Happy to come up with a PR ...