Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
Signed-off-by: usamoi <usamoi@outlook.com>
  • Loading branch information
usamoi committed Sep 27, 2024
1 parent 6b52414 commit ccbefee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logger/postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ fn write_pipe_chunks(pid: u32, mut msg: &[u8], dest: LogDestination) {
chunk.extend((len as u16).to_le_bytes());
chunk.extend((pid as i32).to_le_bytes());
#[cfg(feature = "pg14")]
chunk.extend((is_last as u8).to_le_bytes());
chunk.extend(is_last.to_le_bytes());
#[cfg(any(feature = "pg15", feature = "pg16", feature = "pg17"))]
chunk.extend((flags as u8).to_le_bytes());
chunk.extend_from_slice(&msg[..len]);
Expand Down

0 comments on commit ccbefee

Please sign in to comment.