diff --git a/src/small.rs b/src/small.rs index d171e28..b058b34 100644 --- a/src/small.rs +++ b/src/small.rs @@ -310,3 +310,14 @@ impl std::str::FromStr for SmallString Ok(Self{inner}) } } + +impl fmt::Display for SmallString +{ + #[inline] + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result + { + f.write_str(self.as_str()) + } +} + +//TODO: SmallString: fmt::Write, io::Write impls when extending functions have been written