We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 47270a9 + 939a232 commit 205de7cCopy full SHA for 205de7c
.github/workflows/ci.yml
@@ -18,7 +18,9 @@ jobs:
18
- uses: actions/checkout@v4
19
- name: Build
20
run: cargo build --verbose
21
- - name: Run tests
+ - name: Run Tests
22
run: cargo test --verbose
23
- name: Clippy
24
run: cargo clippy -- -D warnings
25
+ - name: Format
26
+ run: cargo fmt --check
src/prob_0003_longest_substring/mod.rs
@@ -21,7 +21,7 @@ impl Solution {
curr_substr_start_idx += 1;
}
-
+
curr_substr = &s[curr_substr_start_idx..=idx];
longest_substr = longest_substr.max(curr_substr.len());
27
0 commit comments