Skip to content

Commit 107e3b7

Browse files
committed
fix: format file
1 parent ade6657 commit 107e3b7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/rust/build.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fn main() {
6565
#[cfg(feature = "hardsubx_ocr")]
6666
{
6767
builder = builder.clang_arg("-DENABLE_HARDSUBX");
68-
68+
6969
// Add FFmpeg include paths for Mac
7070
if cfg!(target_os = "macos") {
7171
// Try common Homebrew paths
@@ -74,7 +74,7 @@ fn main() {
7474
} else if std::path::Path::new("/usr/local/include").exists() {
7575
builder = builder.clang_arg("-I/usr/local/include");
7676
}
77-
77+
7878
// Check Homebrew Cellar for FFmpeg
7979
let cellar_ffmpeg = "/opt/homebrew/Cellar/ffmpeg";
8080
if std::path::Path::new(cellar_ffmpeg).exists() {
@@ -84,14 +84,15 @@ fn main() {
8484
if let Ok(entry) = entry {
8585
let include_path = entry.path().join("include");
8686
if include_path.exists() {
87-
builder = builder.clang_arg(format!("-I{}", include_path.display()));
87+
builder =
88+
builder.clang_arg(format!("-I{}", include_path.display()));
8889
break;
8990
}
9091
}
9192
}
9293
}
9394
}
94-
95+
9596
// Also check environment variable
9697
if let Ok(ffmpeg_include) = env::var("FFMPEG_INCLUDE_DIR") {
9798
builder = builder.clang_arg(format!("-I{}", ffmpeg_include));

0 commit comments

Comments
 (0)