Added various rustfmt configurations.

Revised documentation of the library and lint opt-out reasons.
Moved some module documentation to it's own file due to overflowing the line limit.
Fixed several spelling errors.
This commit is contained in:
2020-05-13 03:03:46 +01:00
parent 968a89fc0b
commit 63d312e845
24 changed files with 295 additions and 220 deletions

View File

@@ -42,7 +42,7 @@ pub enum DeserializeError {
/// Could not read a deck entry
#[display(fmt = "Unable to read deck entry with id {}", "id")]
ReadDeck {
id: usize,
id: usize,
#[error(source)]
err: std::io::Error,
},
@@ -50,7 +50,7 @@ pub enum DeserializeError {
/// Could not deserialize a deck entry
#[display(fmt = "Unable to serialize deck entry with id {}", "id")]
DeserializeDeck {
id: usize,
id: usize,
#[error(source)]
err: deck::FromBytesError,
},
@@ -71,7 +71,7 @@ pub enum SerializeError {
/// Could not deserialize a deck entry
#[display(fmt = "Unable to deserialize deck entry with id {}", "id")]
SerializeDeck {
id: usize,
id: usize,
#[error(source)]
err: deck::ToBytesError,
},
@@ -79,7 +79,7 @@ pub enum SerializeError {
/// Could not write a deck entry
#[display(fmt = "Unable to read deck entry with id {}", "id")]
WriteDeck {
id: usize,
id: usize,
#[error(source)]
err: std::io::Error,
},