Silence clippy warning

This commit is contained in:
Heikki Linnakangas
2022-11-19 18:26:18 +02:00
parent a2fbd93e91
commit eed99b7251
3 changed files with 8 additions and 2 deletions

View File

@@ -190,6 +190,12 @@ pub struct RemoteTimelineClient {
storage_impl: GenericRemoteStorage,
}
// clippy warns that Uninitialized is much smaller than Initialized, which wastes
// memory for Uninitialized variants. Doesn't matter in practice, there are not
// that many upload queues in a running pageserver, and most of them are initialized
// anyway.
#[allow(clippy::large_enum_variant)]
enum UploadQueue {
Uninitialized,
Initialized(UploadQueueInitialized),