Skip to content

Commit

Permalink
chore: run rustfmt with nightly and line wrap on
Browse files Browse the repository at this point in the history
  • Loading branch information
c-git committed Feb 28, 2025
1 parent 0fd9a42 commit 335bf76
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/tool/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ pub enum Commands {
Active(ActiveArgs),
/// Run tests on active problem
Test,
/// Creates a new pre-configured project from a template for use with cargo-leet
/// Creates a new pre-configured project from a template for use with
/// cargo-leet
New(NewArgs),
}

Expand Down
3 changes: 2 additions & 1 deletion src/tool/core/helpers/local_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ pub(crate) mod tests {

pub(crate) type SlugList = &'static [&'static str];

// Don't want to send them too fast and not at the same time for all tests so random in range
// Don't want to send them too fast and not at the same time for all tests so
// random in range
const MILLISECONDS_DELAY_BETWEEN_REQUESTS_MIN: u64 = 5000;
const MILLISECONDS_DELAY_BETWEEN_REQUESTS_MAX: u64 = 9000;

Expand Down
7 changes: 4 additions & 3 deletions src/tool/core/helpers/problem_code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ impl FunctionInfo {
);
debug!("FunctionInfo:\n{self:#?}");
error!("{err_msg}");
// In use a while and this doesn't happen. So at least still return but just the error message
// and the original input
// In use a while and this doesn't happen. So at least still return but just the
// error message and the original input
return format!(
"/* Error: {err_msg}\nRaw example test cases:\n{example_test_case_raw} */"
);
Expand Down Expand Up @@ -575,7 +575,8 @@ impl Solution {
}

/// Returns the [`FunctionInfo`] for <https://leetcode.com/problems/minimum-array-changes-to-make-differences-equal/description/>
/// bug given the long name we're using the function name instead of the actual problem name
/// bug given the long name we're using the function name instead of the
/// actual problem name
fn get_fn_info_3224_min_changes() -> FunctionInfo {
FunctionInfo {
name: "min_changes".into(),
Expand Down

0 comments on commit 335bf76

Please sign in to comment.