Skip to content

Commit afdeca1

Browse files
committed
refactor
1 parent 2f25bf1 commit afdeca1

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Diff for: git-index/src/extension/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ pub struct Link {
2929
pub bitmaps: Option<link::Bitmaps>,
3030
}
3131

32+
#[allow(dead_code)]
3233
pub struct UntrackedCache {
3334
/// Something identifying the location and machine that this cache is for.
3435
/// Should the repository be copied to a different machine, the entire cache can immediately be invalidated.
@@ -45,6 +46,7 @@ pub struct UntrackedCache {
4546
directories: Vec<untracked_cache::Directory>,
4647
}
4748

49+
#[allow(dead_code)]
4850
pub struct FsMonitor {
4951
token: fs_monitor::Token,
5052
/// if a bit is true, the resepctive entry is NOT valid as per the fs monitor.

Diff for: git-index/src/extension/resolve_undo.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use crate::{
88

99
pub type Paths = Vec<ResolvePath>;
1010

11+
#[allow(dead_code)]
1112
pub struct ResolvePath {
1213
/// relative to the root of the repository, or what would be stored in the index
1314
name: BString,
@@ -16,6 +17,7 @@ pub struct ResolvePath {
1617
stages: [Option<Stage>; 3],
1718
}
1819

20+
#[allow(dead_code)]
1921
pub struct Stage {
2022
mode: u32,
2123
id: ObjectId,

Diff for: git-index/src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![deny(unsafe_code, missing_docs, rust_2018_idioms)]
2-
#![allow(missing_docs, dead_code)]
2+
#![allow(missing_docs)]
33

44
use std::{ops::Range, path::PathBuf};
55

@@ -55,12 +55,14 @@ pub struct State {
5555
///
5656
/// Note that on platforms that only have a precisions of a second for this time, we will treat all entries with the
5757
/// same timestamp as this as potentially changed, checking more thoroughly if a change actually happened.
58+
#[allow(dead_code)]
5859
timestamp: FileTime,
5960
version: Version,
6061
entries: Vec<Entry>,
6162
/// A memory area keeping all index paths, in full length, independently of the index version.
6263
path_backing: Vec<u8>,
6364
/// True if one entry in the index has a special marker mode
65+
#[allow(dead_code)]
6466
is_sparse: bool,
6567

6668
// Extensions

0 commit comments

Comments
 (0)