From 58039fb42072ea3310e2286ab0d84a6db1442b20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Fri, 27 May 2016 17:56:25 +0200 Subject: [PATCH] Fixing few clippy warnings --- ethcore/src/blooms/group_position.rs | 2 +- ethcore/src/trace/db.rs | 2 +- parity/migration.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ethcore/src/blooms/group_position.rs b/ethcore/src/blooms/group_position.rs index f698ca4e5..3a6cc8e83 100644 --- a/ethcore/src/blooms/group_position.rs +++ b/ethcore/src/blooms/group_position.rs @@ -17,7 +17,7 @@ use bloomchain::group as bc; use util::HeapSizeOf; -/// Represents BloomGroup position in database. +/// Represents `BloomGroup` position in database. #[derive(PartialEq, Eq, Hash, Clone, Debug)] pub struct GroupPosition { /// Bloom level. diff --git a/ethcore/src/trace/db.rs b/ethcore/src/trace/db.rs index d540f1b6e..e40fa1b00 100644 --- a/ethcore/src/trace/db.rs +++ b/ethcore/src/trace/db.rs @@ -54,7 +54,7 @@ impl Key for H256 { } } -/// Wrapper around blooms::GroupPosition so it could be +/// Wrapper around `blooms::GroupPosition` so it could be /// uniquely identified in the database. #[derive(Debug, PartialEq, Eq, Hash, Clone)] struct TraceGroupPosition(blooms::GroupPosition); diff --git a/parity/migration.rs b/parity/migration.rs index d41c502cc..acfd32ffd 100644 --- a/parity/migration.rs +++ b/parity/migration.rs @@ -73,7 +73,7 @@ fn version_file_path(path: &PathBuf) -> PathBuf { } /// Reads current database version from the file at given path. -/// If the file does not exist returns DEFAULT_VERSION. +/// If the file does not exist returns `DEFAULT_VERSION`. fn current_version(path: &PathBuf) -> Result { match File::open(version_file_path(path)) { Err(ref err) if err.kind() == ErrorKind::NotFound => Ok(DEFAULT_VERSION),