Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
restrict Sync/Send for Seq<T>
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzeyardabulut authored and bitwalker committed Aug 4, 2023
1 parent 8e89bc7 commit c672f3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/util/src/seq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::sync::Arc;
pub struct Seq<T> {
vec: Option<Arc<Vec<T>>>,
}
unsafe impl<T> Send for Seq<T> {}
unsafe impl<T: Send> Send for Seq<T> {}
impl<T> Seq<T> {
pub fn new() -> Self {
Self::default()
Expand Down

0 comments on commit c672f3a

Please sign in to comment.