blob: 7305ec6dbc7be4bf4b24d3ee8e92f493c8fe812a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
use std::ops::Deref;
// name of repository for this package
#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Debug, Serialize, Deserialize)]
pub struct Repo(String);
impl Deref for Repo {
type Target = String;
fn deref(&self) -> &Self::Target {
&self.0
}
}
|