about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/utils.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils.rs b/src/utils.rs
index 09e1dbde1d0..fd59aedadfe 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -111,6 +111,7 @@ pub(crate) fn format_defaultness(defaultness: ast::Defaultness) -> &'static str
 pub(crate) fn format_safety(unsafety: ast::Safety) -> &'static str {
     match unsafety {
         ast::Safety::Unsafe(..) => "unsafe ",
+        ast::Safety::Safe(..) => "safe ",
         ast::Safety::Default => "",
     }
 }