Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Can't use debug!() in mod #39

Open
bestouff opened this issue Feb 2, 2018 · 1 comment
Open

Can't use debug!() in mod #39

bestouff opened this issue Feb 2, 2018 · 1 comment

Comments

@bestouff
Copy link

bestouff commented Feb 2, 2018

Hi,

I've created an executable with 2 files, used #[macro_use] extern crate quicli; and use quicli::prelude::*; in the first one but now I can't use debug!() in the second one:

error: cannot find macro `debug!` in this scope
  --> src/endmi.rs:28:9
   |
28 |         debug!("start decoding");
   |         ^^^^^

error: aborting due to previous error

I've tried adding use quicli::prelude::*; in the second file, but now some types are polluted (e.g. Result takes only 1 arg now, I guess io::Result has shadowed result::Result).

Is that intended behavior ? Or do I have to do something to have log macros available short of reimporting the log crate ?

@killercup
Copy link
Owner

killercup commented Feb 2, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants