Skip to content

Commit 7a6a762

Browse files
committed
Rename attribute to Display
1 parent bbb7bb9 commit 7a6a762

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "displaydoc"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
authors = ["Jane Lusby <jlusby@yaah.dev>"]
55
edition = "2018"
66
license = "MIT"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
derive(DisplayDoc)
2-
==================
1+
derive(Display) # `From<docs>`
2+
===============
33

44
[![Latest Version](https://img.shields.io/crates/v/displaydoc.svg)](https://crates.io/crates/displaydoc)
55
[![Rust Documentation](https://img.shields.io/badge/api-rustdoc-blue.svg)](https://docs.rs/displaydoc)

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ mod fmt;
77
use proc_macro::TokenStream;
88
use syn::{parse_macro_input, DeriveInput};
99

10-
#[proc_macro_derive(DisplayDoc)]
10+
#[proc_macro_derive(Display)]
1111
pub fn derive_error(input: TokenStream) -> TokenStream {
1212
let input = parse_macro_input!(input as DeriveInput);
1313
expand::derive(&input)

tests/happy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
use displaydoc::DisplayDoc;
1+
use displaydoc::Display;
22

3-
#[derive(DisplayDoc)]
3+
#[derive(Display)]
44
enum Happy {
55
/// I really like Variant1
66
Variant1,

0 commit comments

Comments
 (0)