Bump rat-text from 1.0.5 to 1.1.0 #47
Annotations
8 warnings and 1 notice
|
this `if` statement can be collapsed:
src/app.rs#L464
warning: this `if` statement can be collapsed
--> src/app.rs:464:25
|
464 | / if let Some(filename) = path.file_name() {
465 | | if let Some(filename_str) = filename.to_str() {
466 | | // Only add non-empty filenames that actually contain text
467 | | if !filename_str.is_empty() && filename_str.len() > 4 {
... |
471 | | }
| |_________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
464 ~ if let Some(filename) = path.file_name()
465 ~ && let Some(filename_str) = filename.to_str() {
466 | // Only add non-empty filenames that actually contain text
...
469 | }
470 ~ }
|
|
|
this `if` statement can be collapsed:
src/app.rs#L463
warning: this `if` statement can be collapsed
--> src/app.rs:463:21
|
463 | / if extension == "mp3" {
464 | | if let Some(filename) = path.file_name() {
465 | | if let Some(filename_str) = filename.to_str() {
... |
472 | | }
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
463 ~ if extension == "mp3"
464 ~ && let Some(filename) = path.file_name() {
465 | if let Some(filename_str) = filename.to_str() {
...
470 | }
471 ~ }
|
|
|
this `if` statement can be collapsed:
src/app.rs#L462
warning: this `if` statement can be collapsed
--> src/app.rs:462:17
|
462 | / if let Some(extension) = path.extension() {
463 | | if extension == "mp3" {
464 | | if let Some(filename) = path.file_name() {
465 | | if let Some(filename_str) = filename.to_str() {
... |
473 | | }
| |_________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
462 ~ if let Some(extension) = path.extension()
463 ~ && extension == "mp3" {
464 | if let Some(filename) = path.file_name() {
...
471 | }
472 ~ }
|
|
|
this `if` statement can be collapsed:
src/app.rs#L461
warning: this `if` statement can be collapsed
--> src/app.rs:461:13
|
461 | / if path.is_file() {
462 | | if let Some(extension) = path.extension() {
463 | | if extension == "mp3" {
464 | | if let Some(filename) = path.file_name() {
... |
474 | | }
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
461 ~ if path.is_file()
462 ~ && let Some(extension) = path.extension() {
463 | if extension == "mp3" {
...
472 | }
473 ~ }
|
|
|
this `if` statement can be collapsed:
src/app.rs#L139
warning: this `if` statement can be collapsed
--> src/app.rs:139:17
|
139 | / if let Some(captures) = regex.captures(text) {
140 | | if let Some(video_id) = captures.get(1) {
141 | | let url = format!("https://www.youtube.com/watch?v={}", video_id.as_str());
142 | | info!("Extracted YouTube URL from pattern '{}': {}", pattern, url);
... |
145 | | }
| |_________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
139 ~ if let Some(captures) = regex.captures(text)
140 ~ && let Some(video_id) = captures.get(1) {
141 | let url = format!("https://www.youtube.com/watch?v={}", video_id.as_str());
142 | info!("Extracted YouTube URL from pattern '{}': {}", pattern, url);
143 | return Some(url);
144 ~ }
|
|
|
this `if` statement can be collapsed:
src/app.rs#L138
warning: this `if` statement can be collapsed
--> src/app.rs:138:13
|
138 | / if let Ok(regex) = Regex::new(pattern) {
139 | | if let Some(captures) = regex.captures(text) {
140 | | if let Some(video_id) = captures.get(1) {
141 | | let url = format!("https://www.youtube.com/watch?v={}", video_id.as_str());
... |
146 | | }
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
138 ~ if let Ok(regex) = Regex::new(pattern)
139 ~ && let Some(captures) = regex.captures(text) {
140 | if let Some(video_id) = captures.get(1) {
...
144 | }
145 ~ }
|
|
|
this `if` statement can be collapsed:
src/app.rs#L72
warning: this `if` statement can be collapsed
--> src/app.rs:72:17
|
72 | / if let Event::Key(key) = event::read()? {
73 | | if key.kind == KeyEventKind::Press {
74 | | self.handle_key_event(key).await?;
75 | | }
76 | | }
| |_________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
72 ~ if let Event::Key(key) = event::read()?
73 ~ && key.kind == KeyEventKind::Press {
74 | self.handle_key_event(key).await?;
75 ~ }
|
|
|
this `if` statement can be collapsed:
src/app.rs#L71
warning: this `if` statement can be collapsed
--> src/app.rs:71:13
|
71 | / if event::poll(Duration::from_millis(100))? {
72 | | if let Event::Key(key) = event::read()? {
73 | | if key.kind == KeyEventKind::Press {
74 | | self.handle_key_event(key).await?;
... |
77 | | }
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `#[warn(clippy::collapsible_if)]` on by default
help: collapse nested if block
|
71 ~ if event::poll(Duration::from_millis(100))?
72 ~ && let Event::Key(key) = event::read()? {
73 | if key.kind == KeyEventKind::Press {
74 | self.handle_key_event(key).await?;
75 | }
76 ~ }
|
|
|
test windows-latest
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
|