We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeca8d8 commit f0b7946Copy full SHA for f0b7946
src/encoding.rs
@@ -468,12 +468,19 @@ impl EncodeLabelValue for &str {
468
Ok(())
469
}
470
471
+
472
impl EncodeLabelValue for String {
473
fn encode(&self, encoder: &mut LabelValueEncoder) -> Result<(), std::fmt::Error> {
474
EncodeLabelValue::encode(&self.as_str(), encoder)
475
476
477
478
+impl EncodeLabelValue for &String {
479
+ fn encode(&self, encoder: &mut LabelValueEncoder) -> Result<(), std::fmt::Error> {
480
+ EncodeLabelValue::encode(&self.as_str(), encoder)
481
+ }
482
+}
483
484
impl<'a> EncodeLabelValue for Cow<'a, str> {
485
486
EncodeLabelValue::encode(&self.as_ref(), encoder)
0 commit comments