Skip to content
Open
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 @@ -4,6 +4,8 @@

- Update to Rust 2024
[#487](https://github.com/lambda-fairy/maud/pull/487)
- 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 @@ -150,7 +150,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