Skip to content

Commit

Permalink
Remove explicit size for bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
reknih committed Oct 23, 2023
1 parent 77a6b39 commit 903f3d6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/csl/archive.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
//! Optional archive of included CSL styles.
use citationberg::{Locale, Style};
use rkyv::{AlignedBytes, Archive, Deserialize, Serialize};
use rkyv::{Archive, Deserialize, Serialize};
use std::collections::HashMap;

const ARCHIVE: AlignedBytes<1693160> =
AlignedBytes(*include_bytes!("../../styles.cbor.rkyv"));
#[repr(align(8))]
struct Data<T: ?Sized>(T);

static ARCHIVE: &Data<[u8]> = &Data(*include_bytes!("../../styles.cbor.rkyv"));

/// In-memory representation of a CSL archive.
#[derive(Debug, Clone, Archive, Serialize, Deserialize)]
Expand Down

0 comments on commit 903f3d6

Please sign in to comment.