Skip to content

Commit

Permalink
Release 0.2.8
Browse files Browse the repository at this point in the history
[email protected]

Generated by cargo-workspaces
  • Loading branch information
jdonszelmann committed May 24, 2024
1 parent f0f04a8 commit 24f562c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scopegraphs-regular-expressions/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "scopegraphs-regular-expressions"
version = "0.2.7"
version = "0.2.8"
edition = "2021"
license = "MIT OR Apache-2.0"
authors = [
Expand Down
4 changes: 4 additions & 0 deletions scopegraphs-regular-expressions/src/regex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,24 @@ pub struct Symbol {
pub(super) name: Path,
}

#[cfg(feature = "pretty-print")]
impl Eq for Symbol {}

#[cfg(feature = "pretty-print")]
impl PartialEq for Symbol {
fn eq(&self, other: &Self) -> bool {
self.to_string() == other.to_string()
}
}

#[cfg(feature = "pretty-print")]
impl Debug for Symbol {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
Display::fmt(self, f)
}
}

#[cfg(feature = "pretty-print")]
impl Hash for Symbol {
fn hash<H: Hasher>(&self, state: &mut H) {
self.to_string().hash(state)
Expand Down

0 comments on commit 24f562c

Please sign in to comment.