Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd2faa9a authored by Andrew Walbran's avatar Andrew Walbran
Browse files

Remove unneccessary `extern crate` lines and use macros explicitly.

This makes dependencies more clear.

Bug: 261037227
Test: built crates with cargo
Change-Id: I37dc3c99c13babcb682f5ff1c10be48ec1cd98a0
parent fec3d3ff
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
#[macro_use]
extern crate num_derive;

use clap::{Arg, ArgAction, Command};
use std::io::Write;

+1 −0
Original line number Diff line number Diff line
//! Parsing of various Bluetooth packets.
use chrono::NaiveDateTime;
use num_derive::{FromPrimitive, ToPrimitive};
use num_traits::cast::FromPrimitive;
use std::convert::TryFrom;
use std::fs::File;
+0 −3
Original line number Diff line number Diff line
@@ -13,9 +13,6 @@
//  See the License for the specific language governing permissions and
//  limitations under the License.

extern crate protoc_grpcio;
extern crate protoc_rust;

use std::env;
use std::fs;
use std::io::Write;
+0 −2
Original line number Diff line number Diff line
extern crate protoc_rust;

use pkg_config::Config;
use std::env;
use std::fs;