Cargo clippy. Acronym should not be full uppercase apparently.

This commit is contained in:
Paul Masurel
2021-04-26 11:49:18 +09:00
parent 18bfe131fe
commit 39dd8cfe24
52 changed files with 320 additions and 319 deletions

View File

@@ -70,7 +70,7 @@ pub enum TantivyError {
LockFailure(LockError, Option<String>),
/// IO Error.
#[error("An IO error occurred: '{0}'")]
IOError(#[from] io::Error),
IoError(#[from] io::Error),
/// Data corruption.
#[error("Data corrupted: '{0:?}'")]
DataCorruption(DataCorruption),
@@ -136,7 +136,7 @@ impl From<schema::DocParsingError> for TantivyError {
impl From<serde_json::Error> for TantivyError {
fn from(error: serde_json::Error) -> TantivyError {
TantivyError::IOError(error.into())
TantivyError::IoError(error.into())
}
}