Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2727b55

Browse files
committedMar 17, 2025·
dont remove precision
1 parent 9b90d5a commit 2727b55

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎pgdog/src/net/messages/data_row.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ impl ToDataRowColumn for bool {
9898

9999
impl ToDataRowColumn for f64 {
100100
fn to_data_row_column(&self) -> Data {
101-
let number = format!("{:.5}", self);
102-
Bytes::copy_from_slice(number.as_bytes()).into()
101+
Bytes::copy_from_slice(self.to_string().as_bytes()).into()
103102
}
104103
}
105104

0 commit comments

Comments
 (0)
Please sign in to comment.