Skip to content

Commit d01b05f

Browse files
committed
readme and authors
1 parent dada30c commit d01b05f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description = """
66
license = "MIT"
77
version = "0.2.0"
88
keywords = ["macro", "error", "type", "enum"]
9-
authors = ["Paul Colomiets <[email protected]>"]
9+
authors = ["Paul Colomiets <[email protected]>", "Colin Kiegel <[email protected]>"]
1010
homepage = "http://github.com/tailhook/quick-error"
1111
repository = "http://github.com/tailhook/quick-error"
1212
documentation = "http://tailhook.github.io/quick-error/"

README.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ A macro which makes error types pleasant to write.
88

99
Features:
1010

11-
* Define enum type with arbitrary parameters (not struct variants for now)
11+
* Define enum type with arbitrary parameters
1212
* Concise notation of ``Display`` and ``Error`` traits
1313
* Full control of ``Display`` and ``Error`` trait implementation
1414
* Any number of ``From`` traits
15+
* Support for all enum-variants ``Unit``, ``Tuple`` and ``Struct``
1516

1617
Here is the comprehensive example:
1718

@@ -30,12 +31,14 @@ Here is the comprehensive example:
3031
description(descr)
3132
display("Error {}", descr)
3233
}
33-
IoAt(place: &'static str, err: io::Error) {
34+
IoAt { place: &'static str, err: io::Error } {
3435
cause(err)
3536
display(me) -> ("{} {}: {}", me.description(), place, err)
3637
description("io error at")
37-
from(s: String) -> ("some string",
38-
io::Error::new(io::ErrorKind::Other, s))
38+
from(s: String) -> {
39+
place: "some string",
40+
err: io::Error::new(io::ErrorKind::Other, s)
41+
}
3942
}
4043
Discard {
4144
from(&'static str)

0 commit comments

Comments
 (0)