Skip to content

Commit

Permalink
Quiet some unread fields (#405)
Browse files Browse the repository at this point in the history
Signed-off-by: Ana Hobden <[email protected]>
  • Loading branch information
Hoverbear authored Feb 1, 2022
1 parent 3af19b6 commit a0cf135
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pgx-pg-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,10 @@ fn dfs_find_nodes<'graph>(
/// it stores into the underlying items struct are always correct.
#[derive(Clone, Debug)]
struct StructGraph<'a> {
#[allow(dead_code)]
/// A table mapping struct names to their offset in the descriptor table
name_tab: HashMap<String, usize>,
#[allow(dead_code)]
/// A table mapping offsets into the underlying items table to offsets in the descriptor table
item_offset_tab: Vec<Option<usize>>,
/// A table of struct descriptors
Expand Down
1 change: 1 addition & 0 deletions pgx/src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ pub struct SpiClient;

#[derive(Debug)]
pub struct SpiTupleTable {
#[allow(dead_code)]
status_code: SpiOk,
table: *mut pg_sys::SPITupleTable,
size: usize,
Expand Down

0 comments on commit a0cf135

Please sign in to comment.