mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Remove the Zeroable definition for Finite<T>.
I have no idea why it was added, and it appears to be unused.
This commit is contained in:
parent
94ca87e7dd
commit
04e32c7ab0
1 changed files with 0 additions and 3 deletions
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
//! The `Finite<T>` struct.
|
//! The `Finite<T>` struct.
|
||||||
|
|
||||||
use core::nonzero::Zeroable;
|
|
||||||
use num::Float;
|
use num::Float;
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
|
|
||||||
|
@ -12,8 +11,6 @@ use std::ops::Deref;
|
||||||
#[derive(JSTraceable, Clone, Copy, Eq, PartialEq)]
|
#[derive(JSTraceable, Clone, Copy, Eq, PartialEq)]
|
||||||
pub struct Finite<T: Float>(T);
|
pub struct Finite<T: Float>(T);
|
||||||
|
|
||||||
unsafe impl<T: Float> Zeroable for Finite<T> {}
|
|
||||||
|
|
||||||
impl<T: Float> Finite<T> {
|
impl<T: Float> Finite<T> {
|
||||||
/// Create a new `Finite<T: Float>` safely.
|
/// Create a new `Finite<T: Float>` safely.
|
||||||
pub fn new(value: T) -> Option<Finite<T>> {
|
pub fn new(value: T) -> Option<Finite<T>> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue