mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-27 16:12:56 +00:00
suppress dead_code warnings on nightly
We don't need the nightly compiler, but there's no reason it shouldn't compile without warnings, either. I don't know why stable doesn't warn about these, but it's cheap to suppress them.
This commit is contained in:
@@ -188,6 +188,7 @@ pub fn ui_main<'b>() -> Result<(), Box<dyn Error>> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
struct LogWidget<'a> {
|
||||
logger: &'a TuiLogger,
|
||||
title: &'a str,
|
||||
|
||||
@@ -44,6 +44,7 @@ struct XLogLongPageHeaderData {
|
||||
#[allow(non_upper_case_globals)]
|
||||
const SizeOfXLogLongPHD: usize = (2 + 2 + 4 + 8 + 4) + 4 + 8 + 4 + 4;
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub struct WalStreamDecoder {
|
||||
lsn: u64,
|
||||
|
||||
@@ -253,6 +254,7 @@ const BKPIMAGE_HAS_HOLE: u8 = 0x01; /* page image has "hole" */
|
||||
const BKPIMAGE_IS_COMPRESSED: u8 = 0x02; /* page image is compressed */
|
||||
const BKPIMAGE_APPLY: u8 = 0x04; /* page image should be restored during replay */
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub struct DecodedBkpBlock {
|
||||
/* Is this block ref in use? */
|
||||
//in_use: bool,
|
||||
|
||||
Reference in New Issue
Block a user