Skip to content

Conversation

@dfayd0
Copy link
Member

@dfayd0 dfayd0 commented Jul 7, 2025

No description provided.

@dfayd0 dfayd0 requested a review from Copilot July 7, 2025 19:25
@dfayd0 dfayd0 linked an issue Jul 7, 2025 that may be closed by this pull request
@dfayd0 dfayd0 self-assigned this Jul 7, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Enhances user feedback by showing a loading spinner around each LeetCode CLI command.

  • Imports and configures the spinners crate.
  • Wraps each api_runner call in a spinner to indicate progress.
  • Adds spinners = "4.1.1" to Cargo.toml.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/main.rs Wrapped get_problem_info, start_problem, test_response, and submit_response calls with a start/stop spinner.
Cargo.toml Added the spinners dependency for console loading animations.
Comments suppressed due to low confidence (2)

src/main.rs:46

  • [nitpick] The variable start_problem holds a response, not a problem. Consider renaming it to start_response or start_result for consistency with test_result and submit_result.
            let start_problem = api_runner.start_problem(*id, lang).await?;

src/main.rs:54

  • [nitpick] The indentation here deviates from the multi-line style used elsewhere. Align the Spinner::new call parameters across multiple lines to match the style in other branches.
            let mut spinner =

@dfayd0 dfayd0 merged commit b084d31 into main Jul 7, 2025
@dfayd0 dfayd0 deleted the 19-add-a-terminal-spinner-during-leetcode-api-calls branch July 7, 2025 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a terminal spinner during LeetCode API calls

2 participants