Skip to content

Conversation

kbsletten
Copy link

use std::num::atan no longer works as atan has been redefined as a member of Trigonometric.

`use std::num::atan` no longer works as `atan` has been redefined as a member of `Trigonometric`.
@bluss
Copy link
Contributor

bluss commented Jul 30, 2013

std::num::atan is present in num.rs, in fact these wrapper functions are much easier to use.

#[inline(always)] pub fn atan<T: Trigonometric>(value: T) -> T { value.atan() }

@kbsletten kbsletten closed this Jul 30, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Dec 30, 2021
update: ```Sugg::not()``` replacing the comparison operator. rust-lang#7320

fixes rust-lang#7320

changelog: ```needless_bool```: Changed to make a smart suggestion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants