From 2f07d53cce928ef199574ed1e2d1db906554549c Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Fri, 10 Jan 2025 14:05:08 -0500 Subject: [PATCH] assistant2: Remove unneeded `#[allow(unused)]`s (#22979) This PR removes some unneeded `#[allow(unused)]`s from the context types in Assistant2. We're using these fields now, so we no longer need to suppress the unused lint. Release Notes: - N/A --- crates/assistant2/src/context.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/assistant2/src/context.rs b/crates/assistant2/src/context.rs index a31c25012d..e4957b7591 100644 --- a/crates/assistant2/src/context.rs +++ b/crates/assistant2/src/context.rs @@ -98,9 +98,7 @@ pub struct FileContext { #[derive(Debug)] pub struct DirectoryContext { - #[allow(unused)] pub path: Rc, - #[allow(unused)] pub context_buffers: Vec, pub snapshot: ContextSnapshot, } @@ -127,10 +125,8 @@ pub struct ThreadContext { #[derive(Debug, Clone)] pub struct ContextBuffer { - #[allow(unused)] pub id: BufferId, pub buffer: Model, - #[allow(unused)] pub version: clock::Global, pub text: SharedString, }