Skip to content

Commit 9e78d13

Browse files
committed
"object safe" is now "dyn-compatible"
The phrase was changed in <rust-lang/rust#130852>.
1 parent 0ec827f commit 9e78d13

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rinja/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,11 @@ impl<T: Template + ?Sized> Template for &T {
174174
const MIME_TYPE: &'static str = T::MIME_TYPE;
175175
}
176176

177-
/// Object-safe wrapper trait around [`Template`] implementers
177+
/// [`dyn`-compatible] wrapper trait around [`Template`] implementers
178178
///
179-
/// This trades reduced performance (mostly due to writing into `dyn Write`) for object safety.
179+
/// This trades reduced performance (mostly due to writing into `dyn Write`) for dyn-compatibility.
180+
///
181+
/// [`dyn`-compatible]: <https://doc.rust-lang.org/stable/reference/items/traits.html#object-safety>
180182
pub trait DynTemplate {
181183
/// Helper method which allocates a new `String` and renders into it
182184
fn dyn_render(&self) -> Result<String>;

0 commit comments

Comments
 (0)