Skip to content

Commit bdd7919

Browse files
committed
thanks clippy
1 parent fd3aecd commit bdd7919

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ pub struct GitIndex {
130130
pub(crate) head_commit: gix::ObjectId,
131131
}
132132

133-
///
133+
/// The Git based index implementation
134134
pub mod git;
135135

136136
mod config;
@@ -162,7 +162,7 @@ pub struct SparseIndex {
162162
url: String,
163163
}
164164

165-
///
165+
/// The sparse index implementation.
166166
pub mod sparse;
167167
/// The matching `http` types for use in the [`sparse`] API.
168168
#[cfg(feature = "sparse")]

src/sparse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ impl SparseIndex {
8989
.ok_or_else(|| io::Error::new(io::ErrorKind::InvalidInput, "bad name"))?;
9090

9191
let cache_bytes = std::fs::read(&cache_path)
92-
.map_err(|e| io::Error::new(e.kind(), format!("{}: `{}`", e.to_string(), cache_path.display())))?;
92+
.map_err(|e| io::Error::new(e.kind(), format!("{}: `{}`", e, cache_path.display())))?;
9393
Ok(Crate::from_cache_slice(&cache_bytes, None)?)
9494
}
9595

src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ impl Crate {
298298
/// 1. There is no entry for this crate
299299
/// 2. The entry was created with an older version than the one specified
300300
/// 3. The entry is a newer version than what can be read, would only
301-
/// happen if a future version of cargo changed the format of the cache entries
301+
/// happen if a future version of cargo changed the format of the cache entries
302302
/// 4. The cache entry is malformed somehow
303303
#[inline(never)]
304304
pub(crate) fn from_cache_slice(bytes: &[u8], index_version: Option<&str>) -> io::Result<Self> {

0 commit comments

Comments
 (0)