clippy
This commit is contained in:
parent
c81c711368
commit
e49d4762bb
|
@ -8,7 +8,8 @@ as-is, without any warranty. -->
|
||||||
Version 1.7.0 (unreleased)
|
Version 1.7.0 (unreleased)
|
||||||
==========================
|
==========================
|
||||||
|
|
||||||
* The following methods were added to all fixed-point numbers:
|
* The following methods were added to all fixed-point numbers and to
|
||||||
|
the [`Fixed`][tf-1-7] trait:
|
||||||
* [`from_be`][f-fb-1-7], [`from_le`][f-fl-1-7]
|
* [`from_be`][f-fb-1-7], [`from_le`][f-fl-1-7]
|
||||||
* [`to_be`][f-tb-1-7], [`to_le`][f-tl-1-7]
|
* [`to_be`][f-tb-1-7], [`to_le`][f-tl-1-7]
|
||||||
* [`swap_bytes`][f-sb-1-7]
|
* [`swap_bytes`][f-sb-1-7]
|
||||||
|
|
|
@ -287,6 +287,7 @@ additional terms or conditions.
|
||||||
#![doc(html_root_url = "https://docs.rs/fixed/~1.6")]
|
#![doc(html_root_url = "https://docs.rs/fixed/~1.6")]
|
||||||
#![doc(test(attr(deny(warnings))))]
|
#![doc(test(attr(deny(warnings))))]
|
||||||
#![cfg_attr(feature = "fail-on-warnings", deny(warnings))]
|
#![cfg_attr(feature = "fail-on-warnings", deny(warnings))]
|
||||||
|
#![allow(clippy::wrong_self_convention)]
|
||||||
|
|
||||||
#[cfg(all(not(feature = "std"), test))]
|
#[cfg(all(not(feature = "std"), test))]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
|
|
|
@ -1840,7 +1840,6 @@ pub trait FromFixed {
|
||||||
/// let overflowing: (U8F8, bool) = too_large.overflowing_to_num();
|
/// let overflowing: (U8F8, bool) = too_large.overflowing_to_num();
|
||||||
/// assert_eq!(overflowing, (U8F8::from_bits(0x3456), true));
|
/// assert_eq!(overflowing, (U8F8::from_bits(0x3456), true));
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(clippy::wrong_self_convention)]
|
|
||||||
pub trait ToFixed {
|
pub trait ToFixed {
|
||||||
/// Converts to a fixed-point number.
|
/// Converts to a fixed-point number.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue