From 633426a8fc20a5eef402e159d53228aae13bbaa5 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 12 Apr 2019 12:18:35 -0700 Subject: edition: Fill in macro imports Macros were previously imported through `#[macro_use] extern crate`, which is basically a glob import of all macros from the crate. As of 2018 edition of Rust, `extern crate` is no longer required and macros are imported individually like any other item from a dependency. This CL fills in all the appropriate macro imports that will allow us to remove our use of `extern crate` in a subsequent CL. TEST=cargo check --all-features --tests TEST=kokoro Change-Id: If2ec08b06b743abf5f62677c6a9927c3d5d90a54 Reviewed-on: https://chromium-review.googlesource.com/1565546 Commit-Ready: David Tolnay Commit-Ready: ChromeOS CL Exonerator Bot Tested-by: David Tolnay Tested-by: kokoro Reviewed-by: David Tolnay --- p9/src/protocol/messages.rs | 2 ++ p9/src/protocol/wire_format.rs | 1 + 2 files changed, 3 insertions(+) (limited to 'p9/src') diff --git a/p9/src/protocol/messages.rs b/p9/src/protocol/messages.rs index b5a03c0..f149e3c 100644 --- a/p9/src/protocol/messages.rs +++ b/p9/src/protocol/messages.rs @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +use wire_format_derive::P9WireFormat; + use std::io::{self, ErrorKind, Read, Write}; use std::mem; use std::string::String; diff --git a/p9/src/protocol/wire_format.rs b/p9/src/protocol/wire_format.rs index bd3d67b..84408e2 100644 --- a/p9/src/protocol/wire_format.rs +++ b/p9/src/protocol/wire_format.rs @@ -207,6 +207,7 @@ mod test { use std::io::Cursor; use std::mem; use std::string::String; + use wire_format_derive::P9WireFormat; #[test] fn integer_byte_size() { -- cgit 1.4.1