@@ -41,10 +41,10 @@ impl TestCommandResult {
4141}
4242
4343/// Execute a sync command directly
44- pub fn sync_command_direct ( merge : bool ) -> TestCommandResult {
44+ pub fn sync_command_direct ( _merge : bool ) -> TestCommandResult {
4545 // The sync::run function prints to stderr for errors and doesn't return a Result
4646 // We need to check the git state to determine if it would succeed
47-
47+
4848 // Try to get current branch to test if we're in a git repo
4949 if std:: process:: Command :: new ( "git" )
5050 . args ( [ "rev-parse" , "--is-inside-work-tree" ] )
@@ -54,7 +54,7 @@ pub fn sync_command_direct(merge: bool) -> TestCommandResult {
5454 {
5555 return TestCommandResult :: failure ( "❌ Git command failed" . to_string ( ) , 1 ) ;
5656 }
57-
57+
5858 // Check if there's an upstream configured
5959 if std:: process:: Command :: new ( "git" )
6060 . args ( [ "rev-parse" , "--abbrev-ref" , "--symbolic-full-name" , "@{u}" ] )
@@ -64,7 +64,7 @@ pub fn sync_command_direct(merge: bool) -> TestCommandResult {
6464 {
6565 return TestCommandResult :: failure ( "❌ No upstream configured" . to_string ( ) , 1 ) ;
6666 }
67-
67+
6868 // If we get here, the command would likely succeed
6969 // For testing purposes, we'll simulate success
7070 TestCommandResult :: success ( "✅ Already up to date" . to_string ( ) )
@@ -81,15 +81,15 @@ pub fn large_files_command_direct(_limit: usize, threshold: Option<f64>) -> Test
8181 {
8282 return TestCommandResult :: failure ( "❌ Git command failed" . to_string ( ) , 1 ) ;
8383 }
84-
84+
8585 // Simulate the output based on threshold
8686 if let Some ( thresh) = threshold {
8787 if thresh > 50.0 {
8888 // Format with decimal to match the expected format
8989 let output = if thresh == thresh. floor ( ) {
90- format ! ( "No files larger than {:.1}MB found" , thresh )
90+ format ! ( "No files larger than {thresh :.1}MB found" )
9191 } else {
92- format ! ( "No files larger than {}MB found" , thresh )
92+ format ! ( "No files larger than {thresh }MB found" )
9393 } ;
9494 TestCommandResult :: success ( output)
9595 } else {
@@ -155,4 +155,4 @@ pub fn sync_command(merge: bool) -> SyncCommand {
155155/// Helper to create a large files command for testing
156156pub fn large_files_command ( limit : usize , threshold : Option < f64 > ) -> LargeFilesCommand {
157157 LargeFilesCommand { limit, threshold }
158- }
158+ }
0 commit comments