me: "hmmm, someone posted that initial source for git. that might be fun to port to rust." me: <compiles it to try it out> bash: segfault
https://github.com/steveklabnik/rit/blob/a23e64e908f7677f4100fcaab6d19216848751d5/port/src/bin/init-db.rs#L32-L35 … Seems like you can use `var_os` and not have that error case at all.
-
-
then i get an OsString rather than a String, which means then i have to convert to String
-
Looks like the only place you're operating on it strictly as a string is https://github.com/steveklabnik/rit/blob/a23e64e908f7677f4100fcaab6d19216848751d5/port/src/bin/init-db.rs#L46 … which could use join instead
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.