Remove unused error type
This commit is contained in:
parent
ca9123c740
commit
78db822917
2 changed files with 1 additions and 31 deletions
|
@ -76,11 +76,6 @@ error_chain! {
|
|||
display("ID not found: {}", sid)
|
||||
}
|
||||
|
||||
OutOfMemory {
|
||||
description("Out of Memory")
|
||||
display("Out of Memory")
|
||||
}
|
||||
|
||||
FileNotFound {
|
||||
description("File corresponding to ID not found")
|
||||
display("File corresponding to ID not found")
|
||||
|
@ -156,31 +151,11 @@ error_chain! {
|
|||
display("Entry has invalid formatting, missing header")
|
||||
}
|
||||
|
||||
HeaderPathSyntaxError {
|
||||
description("Syntax error in accessor string")
|
||||
display("Syntax error in accessor string")
|
||||
}
|
||||
|
||||
HeaderPathTypeFailure {
|
||||
description("Header has wrong type for path")
|
||||
display("Header has wrong type for path")
|
||||
}
|
||||
|
||||
HeaderKeyNotFound {
|
||||
description("Header Key not found")
|
||||
display("Header Key not found")
|
||||
}
|
||||
|
||||
HeaderTypeFailure {
|
||||
description("Header type is wrong")
|
||||
display("Header type is wrong")
|
||||
}
|
||||
|
||||
StorePathLacksVersion {
|
||||
description("The supplied store path has no version part")
|
||||
display("The supplied store path has no version part")
|
||||
}
|
||||
|
||||
GlobError {
|
||||
description("glob() error")
|
||||
display("glob() error")
|
||||
|
@ -273,11 +248,6 @@ error_chain! {
|
|||
|
||||
// Parser-related errors
|
||||
|
||||
TOMLParserErrors {
|
||||
description("Several TOML-Parser-Errors")
|
||||
display("Several TOML-Parser-Errors")
|
||||
}
|
||||
|
||||
MissingMainSection {
|
||||
description("Missing main section")
|
||||
display("Missing main section")
|
||||
|
|
|
@ -1139,7 +1139,7 @@ impl Header for Value {
|
|||
use toml::de::from_str;
|
||||
|
||||
from_str(s)
|
||||
.chain_err(|| SEK::TOMLParserErrors)
|
||||
.map_err(From::from)
|
||||
.and_then(verify_header_consistency)
|
||||
.map(Value::Table)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue