Skip to content

Commit 36a6c6c

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rinja/src/lib.rs

+4-2
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/nightly/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)