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 78a4028 commit 9f74354Copy full SHA for 9f74354
src/lib.rs
@@ -301,6 +301,13 @@ impl From<&'_ str> for ScriptExtension {
301
impl fmt::Debug for ScriptExtension {
302
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
303
write!(f, "ScriptExtension(")?;
304
+ fmt::Display::fmt(self, f)?;
305
+ write!(f, ")")
306
+ }
307
+}
308
+
309
+impl fmt::Display for ScriptExtension {
310
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
311
if self.is_common() {
312
write!(f, "Common")?;
313
} else if self.is_inherited() {
@@ -317,7 +324,7 @@ impl fmt::Debug for ScriptExtension {
317
324
script.full_name().fmt(f)?;
318
325
}
319
326
320
- write!(f, ")")
327
+ Ok(())
321
328
322
329
323
330
0 commit comments