Skip to content

Commit

Permalink
Replace magic bytes by binary string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
Hartigan committed Mar 17, 2024
1 parent ab8bd18 commit dd47ff9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions opentelemetry-datadog/src/exporter/intern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ impl<'a> Eq for InternValue<'a> {}

const BOOLEAN_TRUE: &str = "true";
const BOOLEAN_FALSE: &str = "false";
const LEFT_SQUARE_BRACKET: u8 = 0x5b; // '['
const RIGHT_SQUARE_BRACKET: u8 = 0x5d; // ']'
const COMMA: u8 = 0x2c; // ','
const DOUBLE_QUOTE: u8 = 0x22; // '"'
const LEFT_SQUARE_BRACKET: u8 = b'[';
const RIGHT_SQUARE_BRACKET: u8 = b']';
const COMMA: u8 = b',';
const DOUBLE_QUOTE: u8 = b'"';
const EMPTY_ARRAY: &str = "[]";

trait WriteAsLiteral {
Expand Down

0 comments on commit dd47ff9

Please sign in to comment.