Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
[#487](https://github.com/lambda-fairy/maud/pull/487)
- Add support for embedding HTML-safe JSON into pages
[#483](https://github.com/lambda-fairy/maud/pull/483)
- Support platforms witout `alloc::sync` support.
[#492](https://github.com/lambda-fairy/maud/pull/492)

## [0.27.0] - 2025-02-02

Expand Down
5 changes: 3 additions & 2 deletions maud/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

extern crate alloc;

use alloc::{borrow::Cow, boxed::Box, string::String, sync::Arc};
use alloc::{borrow::Cow, boxed::Box, string::String};
use core::fmt::{self, Arguments, Display, Write};

pub use maud_macros::html;
Expand Down Expand Up @@ -156,7 +156,8 @@ impl<T: Render + ?Sized> Render for Box<T> {
}
}

impl<T: Render + ?Sized> Render for Arc<T> {
#[cfg(target_has_atomic = "ptr")]
impl<T: Render + ?Sized> Render for alloc::sync::Arc<T> {
fn render_to(&self, w: &mut String) {
T::render_to(self, w);
}
Expand Down
Loading