These are chat archives for rust-lang/rust

20th
Jan 2017
Jeroen Bollen
@Binero
Jan 20 2017 13:03
What's the easiest way to devide a num::Float by 2?
I have <S: num::Float>, number: S; I cannot do number / 2.0
It gives me an "expected S, found float"
Aleksey Kladov
@matklad
Jan 20 2017 13:05
I think you need something like S::from(2.0)
Jeroen Bollen
@Binero
Jan 20 2017 13:26
@matklad That kindof works, thanks!
needs an unwrap though
Alexey
@KalitaAlexey
Jan 20 2017 16:42
Is there any way to open a PR to the cargo repo, but prevent the bot from starting build?
Aleksey Kladov
@matklad
Jan 20 2017 17:26
No, I think travis and appveyor kick in automatically.
Alexey
@KalitaAlexey
Jan 20 2017 17:27
@matklad,
It is a shame.
Aleksey Kladov
@matklad
Jan 20 2017 17:27
Why? I don't think there's much harm in CI running....
Alexey
@KalitaAlexey
Jan 20 2017 17:28
@matklad,
I needed it because I opened a PR, which with unfinished work.
I didn't want to consume travis and appveyor's time.
Alexander Ronald Altman
@pthariensflame
Jan 20 2017 17:54
If you include the string [ci skip] in the commit description, both Travis and AppVeyor will ignore it.
Aleksey Kladov
@matklad
Jan 20 2017 17:55
@pthariensflame wow, that's cool! Thanks!