Skip to content

Commit 64ad242

Browse files
committed
"object safe" is now "dyn-compatible"
The phrase was changed in <rust-lang/rust#130852>.
1 parent f6cf374 commit 64ad242

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
@@ -180,9 +180,11 @@ impl<T: Template + ?Sized> Template for &T {
180180
const SIZE_HINT: usize = T::SIZE_HINT;
181181
}
182182

183-
/// Object-safe wrapper trait around [`Template`] implementers
183+
/// [`dyn`-compatible] wrapper trait around [`Template`] implementers
184184
///
185-
/// This trades reduced performance (mostly due to writing into `dyn Write`) for object safety.
185+
/// This trades reduced performance (mostly due to writing into `dyn Write`) for dyn-compatibility.
186+
///
187+
/// [`dyn`-compatible]: https://doc.rust-lang.org/stable/reference/items/traits.html#dyn-compatibility
186188
pub trait DynTemplate {
187189
/// Helper method which allocates a new `String` and renders into it
188190
#[cfg(feature = "alloc")]

0 commit comments

Comments
 (0)