mirror of
https://github.com/rust-lang/log.git
synced 2026-02-15 04:10:13 +00:00
Merge pull request #338 from dereckson/clean-duplicate-in-readme-for-rust-2018
Remove duplicate Rust 2018 documentation
This commit is contained in:
commit
a764fdaad8
10
README.md
10
README.md
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user