File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -466,16 +466,6 @@ mark_html_safe! {
466
466
std:: num:: NonZeroU64 , std:: num:: NonZeroU128 , std:: num:: NonZeroUsize ,
467
467
}
468
468
469
- impl < T : HtmlSafe + ?Sized > HtmlSafe for & T { }
470
- impl < T : HtmlSafe + ?Sized > HtmlSafe for Box < T > { }
471
- impl < T : HtmlSafe + ?Sized > HtmlSafe for std:: cell:: Ref < ' _ , T > { }
472
- impl < T : HtmlSafe + ?Sized > HtmlSafe for std:: cell:: RefMut < ' _ , T > { }
473
- impl < T : HtmlSafe + ?Sized > HtmlSafe for std:: rc:: Rc < T > { }
474
- impl < T : HtmlSafe + ?Sized > HtmlSafe for std:: pin:: Pin < & T > { }
475
- impl < T : HtmlSafe + ?Sized > HtmlSafe for std:: sync:: Arc < T > { }
476
- impl < T : HtmlSafe + ?Sized > HtmlSafe for std:: sync:: MutexGuard < ' _ , T > { }
477
- impl < T : HtmlSafe + ?Sized > HtmlSafe for std:: sync:: RwLockReadGuard < ' _ , T > { }
478
- impl < T : HtmlSafe + ?Sized > HtmlSafe for std:: sync:: RwLockWriteGuard < ' _ , T > { }
479
469
impl < T : HtmlSafe > HtmlSafe for std:: num:: Wrapping < T > { }
480
470
impl < T : fmt:: Display > HtmlSafe for HtmlSafeOutput < T > { }
481
471
@@ -486,6 +476,12 @@ where
486
476
{
487
477
}
488
478
479
+ crate :: impl_for_ref! {
480
+ impl HtmlSafe for T { }
481
+ }
482
+
483
+ impl < T : HtmlSafe > HtmlSafe for Pin < T > { }
484
+
489
485
/// Used internally by rinja to select the appropriate [`write!()`] mechanism
490
486
pub struct Writable < ' a , S : ?Sized > ( pub & ' a S ) ;
491
487
You can’t perform that action at this time.
0 commit comments