diff --git a/Cargo.toml b/Cargo.toml index 7191372a..d3e0c241 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "intaglio" -version = "1.2.2" # remember to set `html_root_url` in `src/lib.rs`. +version = "1.3.0" # remember to set `html_root_url` in `src/lib.rs`. authors = ["Ryan Lopopolo "] license = "MIT" edition = "2018" diff --git a/README.md b/README.md index 3ed4ccfe..381c5db8 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Add this to your `Cargo.toml`: ```toml [dependencies] -intaglio = "1.2" +intaglio = "1.3" ``` Then intern UTF-8 strings like: diff --git a/src/lib.rs b/src/lib.rs index 74cffed6..519fcef9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -68,7 +68,7 @@ //! - **bytes** - Enables an additional symbol table implementation for //! interning bytestrings (`Vec` and `&'static [u8]`). -#![doc(html_root_url = "https://docs.rs/intaglio/1.2.2")] +#![doc(html_root_url = "https://docs.rs/intaglio/1.3.0")] // Ensure code blocks in README.md compile #[cfg(doctest)] @@ -165,6 +165,7 @@ impl error::Error for SymbolOverflowError {} /// `Symbol`s are not constrained to the `SymbolTable` which created them. No /// runtime checks ensure that [`SymbolTable::get`] is called with a `Symbol` /// that the table itself issued. +#[repr(transparent)] #[derive(Debug, Clone, Copy, Hash, PartialEq, Eq, PartialOrd, Ord)] pub struct Symbol(u32);