Merge pull request #338 from dereckson/clean-duplicate-in-readme-for-rust-2018

Remove duplicate Rust 2018 documentation
This commit is contained in:
Ashley Mannix 2019-07-06 11:27:46 +10:00 committed by GitHub
commit a764fdaad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,16 +56,6 @@ pub fn shave_the_yak(yak: &mut Yak) {
}
```
If you use Rust 2018 (by setting `edition = 2018` in your `Cargo.toml`), you can use instead the following code to import the crate macros:
```rust
use log::{info, trace, warn};
pub fn shave_the_yak(yak: &mut Yak) {
// …
}
```
## In executables
In order to produce log output, executables have to use a logger implementation compatible with the facade.