Skip to content

Commit 5fbdbbf

Browse files
committed
cargo-rail: fmt
1 parent 14bdf1f commit 5fbdbbf

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/git/system.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ impl SystemGit {
109109
///
110110
/// Note: This is a convenience API for single-file reads. Kept for potential future use.
111111
#[cfg(test)]
112+
#[allow(dead_code)]
112113
pub fn read_file_at_commit(&self, commit_sha: &str, path: &Path) -> RailResult<Vec<u8>> {
113114
let spec = format!("{}:{}", commit_sha, path.display());
114115

tests/integration/helpers.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ mod tests {{
121121

122122
/// Get git log
123123
#[cfg(test)]
124+
#[allow(dead_code)]
124125
pub fn git_log(&self, n: usize) -> Result<Vec<String>> {
125126
let output = git(&self.path, &["log", &format!("-{}", n), "--oneline"])?;
126127
Ok(
@@ -133,12 +134,14 @@ mod tests {{
133134

134135
/// Check if a file exists
135136
#[cfg(test)]
137+
#[allow(dead_code)]
136138
pub fn file_exists(&self, path: &str) -> bool {
137139
self.path.join(path).exists()
138140
}
139141

140142
/// Read a file
141143
#[cfg(test)]
144+
#[allow(dead_code)]
142145
pub fn read_file(&self, path: &str) -> Result<String> {
143146
Ok(std::fs::read_to_string(self.path.join(path))?)
144147
}

0 commit comments

Comments
 (0)