Skip to content

Commit a01fcb8

Browse files
committed
Run cargo fmt to fix formatting issues
1 parent 8947fb6 commit a01fcb8

File tree

4 files changed

+34
-13
lines changed

4 files changed

+34
-13
lines changed

examples/test_format_equivalence.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,13 @@ fn main() -> Result<()> {
8787
min_scaffold_identity: 0.0,
8888
};
8989

90-
filter_file(temp_1aln.path(), temp_filtered_1aln.path(), &config, false, false)?;
90+
filter_file(
91+
temp_1aln.path(),
92+
temp_filtered_1aln.path(),
93+
&config,
94+
false,
95+
false,
96+
)?;
9197
println!(" ✓ .1aln filtering succeeded");
9298

9399
// Filter PAF → PAF

src/binary_paths.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,11 @@ pub fn get_embedded_binary_path(binary_name: &str) -> Result<PathBuf> {
3030

3131
// Check installed location (for cargo install)
3232
// Try $CARGO_HOME/lib/sweepga/ or ~/.cargo/lib/sweepga/
33-
let cargo_home = env::var("CARGO_HOME")
34-
.ok()
35-
.map(PathBuf::from)
36-
.or_else(|| {
37-
env::var("HOME")
38-
.ok()
39-
.map(|h| PathBuf::from(h).join(".cargo"))
40-
});
33+
let cargo_home = env::var("CARGO_HOME").ok().map(PathBuf::from).or_else(|| {
34+
env::var("HOME")
35+
.ok()
36+
.map(|h| PathBuf::from(h).join(".cargo"))
37+
});
4138

4239
if let Some(cargo_home) = cargo_home {
4340
let installed_path = cargo_home.join("lib").join("sweepga").join(binary_name);

src/fastga_integration.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,10 @@ impl FastGAIntegration {
164164
fn ensure_fastga_in_path() -> Result<()> {
165165
// Try to find FastGA using our binary_paths module
166166
if let Ok(fastga_path) = crate::binary_paths::get_embedded_binary_path("FastGA") {
167-
eprintln!("[FastGA] Found embedded binary at: {}", fastga_path.display());
167+
eprintln!(
168+
"[FastGA] Found embedded binary at: {}",
169+
fastga_path.display()
170+
);
168171
if let Some(fastga_dir) = fastga_path.parent() {
169172
// Temporarily add this directory to PATH for fastga-rs to find
170173
if let Ok(current_path) = std::env::var("PATH") {

src/main.rs

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,10 @@ fn main() -> Result<()> {
13641364
#[cfg(unix)]
13651365
{
13661366
use std::os::unix::fs::PermissionsExt;
1367-
println!(" Executable: {}", metadata.permissions().mode() & 0o111 != 0);
1367+
println!(
1368+
" Executable: {}",
1369+
metadata.permissions().mode() & 0o111 != 0
1370+
);
13681371
}
13691372

13701373
let path_str = path.to_string_lossy();
@@ -1529,11 +1532,23 @@ fn main() -> Result<()> {
15291532
// Step 3: Filter .1aln directly using unified_filter (format-preserving)
15301533
use crate::unified_filter::filter_file;
15311534
if let Some(ref output_file) = args.output_file {
1532-
filter_file(&aln_input_path, output_file, &filter_config, false, args.keep_self)?;
1535+
filter_file(
1536+
&aln_input_path,
1537+
output_file,
1538+
&filter_config,
1539+
false,
1540+
args.keep_self,
1541+
)?;
15331542
} else {
15341543
// Write to temp file then copy to stdout
15351544
let temp_output = tempfile::NamedTempFile::with_suffix(".1aln")?;
1536-
filter_file(&aln_input_path, temp_output.path(), &filter_config, false, args.keep_self)?;
1545+
filter_file(
1546+
&aln_input_path,
1547+
temp_output.path(),
1548+
&filter_config,
1549+
false,
1550+
args.keep_self,
1551+
)?;
15371552

15381553
// Copy binary to stdout
15391554
use std::io::copy;

0 commit comments

Comments
 (0)