Skip to content

Commit

Permalink
Remove usage of extern keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
blenderskool committed Jan 25, 2021
1 parent ff56dc9 commit a8d2500
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
extern crate serde_cbor;
extern crate serde_json;

use std::fs::File;
use std::env;

Expand Down
1 change: 1 addition & 0 deletions lib/src/color.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::{convert::From, fmt};
use serde_derive::Serialize;

#[derive(Serialize, Clone)]
pub struct RGB {
Expand Down
1 change: 0 additions & 1 deletion lib/src/weights.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
extern crate wasm_bindgen;
use crate::color;

use wasm_bindgen::{prelude::*};
Expand Down
3 changes: 1 addition & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
extern crate serde_cbor;

use pigmnts::color::{LAB, RGB};
use std::collections::HashMap;
use lazy_static::lazy_static;

/// Coverts a hex string to RGB color
fn hex_to_rgb(s: &str) -> RGB {
Expand Down

0 comments on commit a8d2500

Please sign in to comment.