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
This commit is contained in:
Marshall Bowers 2025-01-10 14:05:08 -05:00 committed by GitHub
parent fe3d409b17
commit 2f07d53cce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,9 +98,7 @@ pub struct FileContext {
#[derive(Debug)]
pub struct DirectoryContext {
#[allow(unused)]
pub path: Rc<Path>,
#[allow(unused)]
pub context_buffers: Vec<ContextBuffer>,
pub snapshot: ContextSnapshot,
}
@ -127,10 +125,8 @@ pub struct ThreadContext {
#[derive(Debug, Clone)]
pub struct ContextBuffer {
#[allow(unused)]
pub id: BufferId,
pub buffer: Model<Buffer>,
#[allow(unused)]
pub version: clock::Global,
pub text: SharedString,
}