Remove extern crate statements (#3310)

This commit is contained in:
daxpedda 2023-12-25 09:25:09 +01:00 committed by GitHub
parent 61a873d79a
commit 28a811bbba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 54 additions and 26 deletions

View file

@ -104,6 +104,9 @@
//! [android_1]: https://developer.android.com/training/multiscreen/screendensities
//! [web_1]: https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio
#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
pub trait Pixel: Copy + Into<f64> {
fn from_f64(f: f64) -> Self;
fn cast<P: Pixel>(self) -> P {