These are chat archives for rust-lang/rust

5th
Apr 2016
fstuess
@fstuess
Apr 05 2016 09:41
hi there, trying to use fmt::Debug for a lazy_static. It yields E0269, not all control paths return a value. I don't see why. Any hints?
Erik Hedvall
@Ogeon
Apr 05 2016 10:04
It has to return a result. Just remove the ; after write!(...) :smile:
fstuess
@fstuess
Apr 05 2016 10:18
ouuuuh. hours of looking that stupid fault. should stop now. sry for asking. sometimes it's like this....
Erik Hedvall
@Ogeon
Apr 05 2016 10:20
Happens to everyone. Nothing wrong with asking :smile:
John C F
@critiqjo
Apr 05 2016 13:44
Back to the old question... Generalized: why isn't there:
impl<T: io::Write> fmt::Write for T { ... }
John C F
@critiqjo
Apr 05 2016 13:51
...and on error, simply returning fmt::Error if invoked through fmt::Write?
Vladimir Matveev
@netvl
Apr 05 2016 13:51
@critiqjo due to coherence rules, I think. with such an impl no one will be able to implement fmt::Write for anything else
with specialization it may be not relevant anymore, though
John C F
@critiqjo
Apr 05 2016 13:54
Ah I see... Thanks...
Jeroen Bollen
@Binero
Apr 05 2016 21:41
Does anyone here know how to make cargo fetch a dependency from a private repository (over ssh)
It keeps saying "failed to authenticate when downloading repository", while the relevant keys are in fact in my ssh-agent
Jacob Moen
@jacmoe
Apr 05 2016 21:47
What OS are you using @Binero ?
Jeroen Bollen
@Binero
Apr 05 2016 21:48
Arch Linux 64bit latest everything
Jacob Moen
@jacmoe
Apr 05 2016 21:48
I have this in a bash script:
#!/bin/bash
export SSH_ASKPASS=/usr/bin/ksshaskpass
/usr/bin/ssh-add < /dev/null 
Jeroen Bollen
@Binero
Apr 05 2016 21:48
it shouldn't need a password, my keyring is opened
worth trying though
Jacob Moen
@jacmoe
Apr 05 2016 21:51
My console is fine without that but several programs fail to recognize that, so adding it to ksshaskpass fixed it for me - if you are using Gnome, then there are probably a similar program :smile:
Jeroen Bollen
@Binero
Apr 05 2016 21:58
Yeah there is seahorse which I just tried
doesn't seem to have any impact