Skip to content

Commit fd2512a

Browse files
gauntfaceclaude
andcommitted
fix(clippy): fix warnings caught by clippy 1.95
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6d4674e commit fd2512a

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

‎src/commands/auth.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ async fn await_pkce_callback(
167167
listener: TcpListener,
168168
expected_state: &str,
169169
) -> Result<(String, TcpStream)> {
170-
let (mut stream, _) = timeout(Duration::from_secs(600), listener.accept())
170+
let (mut stream, _) = timeout(Duration::from_mins(10), listener.accept())
171171
.await
172172
.context("Authentication timed out after 10 minutes")??;
173173

‎src/commands/rules.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ pub async fn handle(command: &RuleCommands, cli: &crate::Cli) -> Result<()> {
135135
.context("Failed to start rule creation")?;
136136

137137
Term::stdout()
138-
.write_line(&format!("{} Rule creation started.", style("✓").green(),))?;
138+
.write_line(&format!("{} Rule creation started.", style("✓").green()))?;
139139
Term::stdout().write_line(&format!(
140140
" Request ID: {}",
141141
style(response.rule_creation_request_id.to_string()).bold(),

‎src/commands/satisfying_sort/mod.rs‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ impl TerminalSession {
6969
}
7070
let initial_size = terminal
7171
.size()
72-
.map(|rect| (usize::from(rect.height), usize::from(rect.width)))
73-
.unwrap_or((0, 0));
72+
.map_or((0, 0), |rect| (usize::from(rect.height), usize::from(rect.width)));
7473
let aspect_x = if initial_size.0 > 0 && initial_size.1 > 0 {
7574
halfblocks_cell_aspect_x()
7675
} else {
@@ -87,8 +86,7 @@ impl TerminalSession {
8786
fn size(&self) -> (usize, usize) {
8887
self.terminal
8988
.size()
90-
.map(|rect| (usize::from(rect.height), usize::from(rect.width)))
91-
.unwrap_or((0, 0))
89+
.map_or((0, 0), |rect| (usize::from(rect.height), usize::from(rect.width)))
9290
}
9391

9492
fn draw(&mut self, state: &SortState) -> Result<()> {

0 commit comments

Comments
 (0)