Andy Barron
Andy Barron
Ooh, I bet I could use a simple trait with two methods (for author and app name) that return `String`, and provide the default struct as an implementation with `&'static...
More like this: ```rust trait AppInfo { fn name(&self) -> &str; fn author(&self) -> &str; } struct StaticAppInfo { name: &'static str, author: &'static str, } struct DynamicAppInfo { name:...
I originally used `AsRef`, but I had an issue with Windows where passing in `"foo/bar"` would return something like `"C:\backslashes\until/foo/bar"`. I'd be more than willing to use the more idiomatic...
NB: [`std::fs::canonicalize`](https://doc.rust-lang.org/std/fs/fn.canonicalize.html) _might_ fix the issue with mixed slashes; I'll have to test it on my Windows machine.
Thanks for the info (and sorry for the late response)! I like the idea of checking to see if a path already exists in any XDG path; that'll work well....
Not currently handled, but would be a great (and simple) addition. [It looks like any name _starting_ with those values and a period are also invalid.](https://social.technet.microsoft.com/Forums/windows/en-US/e22c021d-d188-4ff2-a4dd-b5d58d979c58/the-specified-device-name-is-invalid)
The intent wasn't security, but to make sure that e.g. somebody developing on Linux wouldn't accidentally use path names that fail on Windows. We call `sanitized` on every platform for...
Agreed; I can add a clarification to the docs. It definitely isn't intended to be used on _user_ input, but programmer input - to create a directory structure for their...
Confirming repro with very different system: * Windows 10 * Chrome * react-mentions 2.3.1 * react 16.7.0-alpha Here is a code sandbox with an isolated test case. I can enter...
Hotfix: Multiplying canvas X coordinates by 1.08 in your level code makes everything line up ;)