File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " displaydoc"
3
- version = " 0.1.1 "
3
+ version = " 0.1.2 "
4
4
authors = [" Jane Lusby <jlusby@yaah.dev>" ]
5
5
edition = " 2018"
6
6
license = " MIT"
Original file line number Diff line number Diff line change 1
- derive(DisplayDoc)
2
- ==================
1
+ derive(Display) # ` From<docs> `
2
+ ===============
3
3
4
4
[ ![ Latest Version] ( https://img.shields.io/crates/v/displaydoc.svg )] ( https://crates.io/crates/displaydoc )
5
5
[ ![ Rust Documentation] ( https://img.shields.io/badge/api-rustdoc-blue.svg )] ( https://docs.rs/displaydoc )
Original file line number Diff line number Diff line change 7
7
use proc_macro:: TokenStream ;
8
8
use syn:: { parse_macro_input, DeriveInput } ;
9
9
10
- #[ proc_macro_derive( DisplayDoc ) ]
10
+ #[ proc_macro_derive( Display ) ]
11
11
pub fn derive_error ( input : TokenStream ) -> TokenStream {
12
12
let input = parse_macro_input ! ( input as DeriveInput ) ;
13
13
expand:: derive ( & input)
Original file line number Diff line number Diff line change 1
- use displaydoc:: DisplayDoc ;
1
+ use displaydoc:: Display ;
2
2
3
- #[ derive( DisplayDoc ) ]
3
+ #[ derive( Display ) ]
4
4
enum Happy {
5
5
/// I really like Variant1
6
6
Variant1 ,
You can’t perform that action at this time.
0 commit comments