Skip to content

Commit 23f0e88

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

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
@@ -175,9 +175,11 @@ impl<T: Template + ?Sized> Template for &T {
175175
const MIME_TYPE: &'static str = T::MIME_TYPE;
176176
}
177177

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

0 commit comments

Comments
 (0)