Merge pull request #3350 from curiousleo/no-macro-use
Remove #[macro_use]
This commit is contained in:
commit
94c9343702
|
@ -1,14 +1,3 @@
|
||||||
#[macro_use]
|
|
||||||
extern crate lazy_static;
|
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
#[macro_use]
|
|
||||||
extern crate assert_matches;
|
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
#[macro_use]
|
|
||||||
extern crate proptest;
|
|
||||||
|
|
||||||
#[cfg(not(test))]
|
#[cfg(not(test))]
|
||||||
mod c;
|
mod c;
|
||||||
mod error;
|
mod error;
|
||||||
|
|
|
@ -138,6 +138,7 @@ impl fmt::Display for StorePathName {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
use assert_matches::assert_matches;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_parse() {
|
fn test_parse() {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
use crate::error::Error;
|
use crate::error::Error;
|
||||||
|
use lazy_static::lazy_static;
|
||||||
|
|
||||||
pub fn encoded_len(input_len: usize) -> usize {
|
pub fn encoded_len(input_len: usize) -> usize {
|
||||||
if input_len == 0 {
|
if input_len == 0 {
|
||||||
|
@ -87,7 +88,9 @@ pub fn decode(input: &str) -> Result<Vec<u8>, crate::Error> {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
use assert_matches::assert_matches;
|
||||||
use hex;
|
use hex;
|
||||||
|
use proptest::proptest;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_encode() {
|
fn test_encode() {
|
||||||
|
|
Loading…
Reference in a new issue