aboutsummaryrefslogtreecommitdiff
path: root/src/raw_string.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/raw_string.rs')
-rw-r--r--src/raw_string.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/raw_string.rs b/src/raw_string.rs
index c5961f1..53714a1 100644
--- a/src/raw_string.rs
+++ b/src/raw_string.rs
@@ -80,6 +80,7 @@ impl RawString {
}
}
+ #[cfg(feature = "display")]
pub(crate) fn encode(&self, buf: &mut dyn std::fmt::Write, input: &str) -> std::fmt::Result {
let raw = self.to_str(input);
for part in raw.split('\r') {
@@ -88,6 +89,7 @@ impl RawString {
Ok(())
}
+ #[cfg(feature = "display")]
pub(crate) fn encode_with_default(
&self,
buf: &mut dyn std::fmt::Write,