Skip to content

Commit 507fe69

Browse files
authored
fix: CI failing due to merges (#306)
1 parent 8bc9b11 commit 507fe69

File tree

10 files changed

+7
-13
lines changed

10 files changed

+7
-13
lines changed

crates/chat-cli/src/api_client/interceptor/mod.rs

Lines changed: 0 additions & 1 deletion
This file was deleted.

crates/chat-cli/src/api_client/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
pub(crate) mod credentials;
1+
mod credentials;
22
pub mod customization;
33
mod endpoints;
44
mod error;
5-
pub(crate) mod interceptor;
65
pub mod model;
6+
mod opt_out;
77
pub mod profile;
88
pub mod send_message_output;
99

@@ -38,11 +38,11 @@ use tracing::{
3838
};
3939

4040
use crate::api_client::credentials::CredentialsChain;
41-
use crate::api_client::interceptor::opt_out::OptOutInterceptor;
4241
use crate::api_client::model::{
4342
ChatResponseStream,
4443
ConversationState,
4544
};
45+
use crate::api_client::opt_out::OptOutInterceptor;
4646
use crate::api_client::send_message_output::SendMessageOutput;
4747
use crate::auth::builder_id::BearerResolver;
4848
use crate::aws_common::{

crates/chat-cli/src/cli/chat/cli/persist.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ impl PersistSubcommand {
7777
},
7878
Self::Load { path } => {
7979
// Try the original path first
80-
let original_result = ctx.fs.read_to_string(&path).await;
80+
let original_result = os.fs.read_to_string(&path).await;
8181

8282
// If the original path fails and doesn't end with .json, try with .json appended
8383
let contents = if original_result.is_err() && !path.ends_with(".json") {
8484
let json_path = format!("{}.json", path);
85-
match ctx.fs.read_to_string(&json_path).await {
85+
match os.fs.read_to_string(&json_path).await {
8686
Ok(content) => content,
8787
Err(_) => {
8888
// If both paths fail, return the original error for better user experience

crates/chat-cli/src/cli/chat/input_source.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use rustyline::error::ReadlineError;
44
use super::prompt::rl;
55
#[cfg(unix)]
66
use super::skim_integration::SkimCommandSelector;
7-
#[cfg(unix)]
87
use crate::os::Os;
98

109
#[derive(Debug)]

crates/chat-cli/src/cli/chat/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,9 +1129,6 @@ impl ChatSession {
11291129

11301130
/// Read input from the user.
11311131
async fn prompt_user(&mut self, os: &Os, skip_printing_tools: bool) -> Result<ChatState, ChatError> {
1132-
#[cfg(windows)]
1133-
let _ = database;
1134-
11351132
execute!(self.stderr, cursor::Show)?;
11361133

11371134
// Check token usage and display warnings if needed

crates/chat-cli/src/os/fs/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub(super) fn append(a: impl AsRef<Path>, b: impl AsRef<Path>) -> PathBuf {
2323
let mut b_normal_path = PathBuf::new();
2424
for comp in b_path.components() {
2525
match comp {
26-
Component::Prefix(_) | Component::RootDir => continue,
26+
Component::Prefix(_) | Component::RootDir => (),
2727
_ => b_normal_path.push(comp.as_os_str()),
2828
}
2929
}

crates/fig_desktop/src/platform/linux/sway.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ pub async fn handle_incoming(conn: &mut UnixStream, buf: &mut BytesMut, sway_sta
239239
},
240240
ParseResult::Incomplete => {
241241
conn.read_buf(buf).await.unwrap();
242-
continue;
243242
},
244243
ParseResult::Error(err) => {
245244
error!(%err, "Failed to parse sway message");

crates/fig_install/src/linux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ async fn update_full_ctx(
227227
let temp_dir = ctx.fs().create_tempdir().await?;
228228
let file_name = download_url
229229
.path_segments()
230-
.and_then(|path| path.last())
230+
.and_then(|mut path| path.next_back())
231231
.unwrap_or(PRODUCT_NAME);
232232
let download_path = temp_dir.path().join(file_name);
233233

0 commit comments

Comments
 (0)