We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
use
1 parent e6a158c commit 94c80adCopy full SHA for 94c80ad
1 file changed
src/id.rs
@@ -1,17 +1,14 @@
1
//! Code for handling IDs
2
use anyhow::{Context, Result};
3
use indexmap::IndexSet;
4
+use std::borrow::Borrow;
5
use std::collections::HashSet;
6
+use std::fmt::Display;
7
+use std::hash::Hash;
8
9
/// A trait alias for ID types
-pub trait IDLike:
- Eq + std::hash::Hash + std::borrow::Borrow<str> + Clone + std::fmt::Display + From<String>
-{
10
-}
11
-impl<T> IDLike for T where
12
- T: Eq + std::hash::Hash + std::borrow::Borrow<str> + Clone + std::fmt::Display + From<String>
13
14
+pub trait IDLike: Eq + Hash + Borrow<str> + Clone + Display + From<String> {}
+impl<T> IDLike for T where T: Eq + Hash + Borrow<str> + Clone + Display + From<String> {}
15
16
macro_rules! define_id_type {
17
($name:ident) => {
0 commit comments