mirror of
https://github.com/penpot/penpot.git
synced 2025-07-30 11:28:37 +02:00
🔧 Fix Rust tests (#6208)
* 🔧 Fix test script (rust wasm) * 🔧 Make code compile in test mode + using aarch64 as a target for tests
This commit is contained in:
parent
d279b6c232
commit
6f91da9461
8 changed files with 50 additions and 8 deletions
|
@ -30,6 +30,17 @@ impl Uuid {
|
|||
pub fn from_u64_pair(high: u64, low: u64) -> Self {
|
||||
Self(ExternalUuid::from_u64_pair(high, low))
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub fn new_v4() -> Self {
|
||||
Self(ExternalUuid::new_v4())
|
||||
}
|
||||
}
|
||||
|
||||
impl From<ExternalUuid> for Uuid {
|
||||
fn from(uuid: ExternalUuid) -> Self {
|
||||
Self(uuid)
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for Uuid {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue