Skip to content

Commit 837f0c7

Browse files
committed
chores
1 parent 4526ed9 commit 837f0c7

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

crates/detect/src/browser/macos.rs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,21 @@ mod tests {
162162

163163
#[test]
164164
fn test_url_regex() {
165-
let landing_url = "https://meet.google.com/landing";
166-
assert!(!MEETING_REGEXES.iter().any(|re| re.is_match(&landing_url)));
165+
let test_cases = [
166+
("https://meet.google.com/landing", false),
167+
("https://meet.google.com/tjw-fcje-ewx", true),
168+
];
167169

168-
let meeting_url = "https://meet.google.com/tjw-fcje-ewx";
169-
assert!(MEETING_REGEXES.iter().any(|re| re.is_match(&meeting_url)));
170+
for (url, expected_match) in test_cases {
171+
let matches = MEETING_REGEXES.iter().any(|re| re.is_match(url));
172+
assert_eq!(
173+
matches,
174+
expected_match,
175+
"URL '{}' should {} match the regex",
176+
url,
177+
if expected_match { "" } else { "not " }
178+
);
179+
}
170180
}
171181

172182
#[test]

plugins/local-llm/src/ext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl<R: Runtime, T: Manager<R>> LocalLlmPluginExt<R> for T {
9393

9494
if let Err(e) = download_file_with_callback(url, path, callback).await {
9595
tracing::error!("model_download_error: {}", e);
96-
channel.send(-1);
96+
let _ = channel.send(-1);
9797
}
9898
});
9999

plugins/local-stt/src/ext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl<R: Runtime, T: Manager<R>> LocalSttPluginExt<R> for T {
134134
download_file_with_callback(m.model_url(), m.model_path(&data_dir), callback).await
135135
{
136136
tracing::error!("model_download_error: {}", e);
137-
channel.send(-1);
137+
let _ = channel.send(-1);
138138
}
139139
});
140140

0 commit comments

Comments
 (0)