Skip to content

Commit

Permalink
Merge pull request #91 from artichoke/symbol-repr-transparent
Browse files Browse the repository at this point in the history
Make `Symbol` repr(transparent)
  • Loading branch information
lopopolo authored Aug 6, 2021
2 parents 197e6da + 35156f2 commit be42853
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <rjl@hyperbo.la>"]
license = "MIT"
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Add this to your `Cargo.toml`:

```toml
[dependencies]
intaglio = "1.2"
intaglio = "1.3"
```

Then intern UTF-8 strings like:
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
//! - **bytes** - Enables an additional symbol table implementation for
//! interning bytestrings (`Vec<u8>` 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)]
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit be42853

Please sign in to comment.