Skip to content

Commit 7fef316

Browse files
test: fix cli test imports
1 parent 5fa5cbc commit 7fef316

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/cortex-cli/src/agent_cmd/tests.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
#[cfg(test)]
44
mod tests {
55
use crate::agent_cmd::cli::{CopyArgs, ExportArgs};
6-
use crate::agent_cmd::loader::{
7-
load_builtin_agents, parse_frontmatter, read_file_with_encoding,
8-
};
6+
use crate::agent_cmd::loader::{load_builtin_agents, parse_frontmatter};
97
use crate::agent_cmd::types::AgentMode;
8+
use crate::utils::file::read_file_with_encoding;
109

1110
#[test]
1211
fn test_read_file_with_utf8() {

src/cortex-cli/src/utils/notification.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ pub enum NotificationUrgency {
3131
/// # Returns
3232
/// `Ok(())` on success (or silent failure if notifications unavailable).
3333
pub fn send_notification(title: &str, body: &str, urgency: NotificationUrgency) -> Result<()> {
34+
#[cfg(not(target_os = "linux"))]
35+
let _ = urgency;
36+
3437
#[cfg(target_os = "macos")]
3538
{
3639
send_notification_macos(title, body)?;

0 commit comments

Comments
 (0)