@@ -50,7 +50,7 @@ impl LineProtoTerm<'_> {
5050 }
5151
5252 /// Serializes Tag Values. InfluxDB stores tag values as strings, so we format everything to string.
53- ///
53+ ///
5454 /// V2: https://docs.influxdata.com/influxdb/cloud/reference/syntax/line-protocol/#tag-set
5555 /// V1: https://docs.influxdata.com/influxdb/v1/write_protocols/line_protocol_tutorial/#data-types
5656 fn escape_tag_value ( v : & Type ) -> String {
@@ -78,31 +78,26 @@ impl LineProtoTerm<'_> {
7878 }
7979
8080 /// Escapes a Rust bool to InfluxDB Line Protocol
81- ///
81+ ///
8282 /// https://docs.influxdata.com/influxdb/cloud/reference/syntax/line-protocol/#boolean
8383 /// Stores true or false values.
8484 fn escape_boolean ( v : & bool ) -> String {
85- if * v {
86- "true"
87- } else {
88- "false"
89- }
90- . to_string ( )
85+ if * v { "true" } else { "false" } . to_string ( )
9186 }
9287
9388 /// Escapes a Rust i64 to InfluxDB Line Protocol
94- ///
89+ ///
9590 /// https://docs.influxdata.com/influxdb/cloud/reference/syntax/line-protocol/#integer
9691 /// Signed 64-bit integers. Trailing i on the number specifies an integer.
9792 fn escape_signed_integer ( v : & i64 ) -> String {
9893 format ! ( "{v}i" )
9994 }
10095
10196 /// Escapes a Rust u64 to InfluxDB Line Protocol
102- ///
97+ ///
10398 /// https://docs.influxdata.com/influxdb/cloud/reference/syntax/line-protocol/#uinteger
10499 /// Unsigned 64-bit integers. Trailing u on the number specifies an unsigned integer.
105- ///
100+ ///
106101 /// InfluxDB version 1 does not know unsigned, we fallback to (signed) integer:
107102 /// https://docs.influxdata.com/influxdb/v1/write_protocols/line_protocol_tutorial/#data-types
108103 fn escape_unsigned_integer ( v : & u64 , use_v2 : bool ) -> String {
0 commit comments