Skip to content

Commit f26ccc9

Browse files
committed
Making enums and structs Clone
Updating dependencies
1 parent 53b64c2 commit f26ccc9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ license = "MIT"
99
name = "git-url-parse"
1010
readme = "README.md"
1111
repository = "https://github.com/tjtelan/git-url-parse-rs"
12-
version = "0.1.0"
12+
version = "0.1.1"
1313

1414
[badges.maintenance]
1515
status = "actively-developed"
1616

1717
[dependencies]
1818
log = "0.4"
1919
url = "2.1"
20-
strum = "0.17"
21-
strum_macros = "0.17"
20+
strum = "0.18"
21+
strum_macros = "0.18"
2222
anyhow = "1.0"
2323
regex = "1.3"
2424

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use strum_macros::{EnumString, EnumVariantNames};
77
use url::Url;
88

99
/// Supported uri schemes for parsing
10-
#[derive(Debug, PartialEq, EnumString, EnumVariantNames)]
10+
#[derive(Debug, PartialEq, EnumString, EnumVariantNames, Clone)]
1111
#[strum(serialize_all = "kebab_case")]
1212
pub enum Protocol {
1313
/// Represents No url scheme
@@ -31,7 +31,7 @@ pub enum Protocol {
3131
/// Internally during parsing the url is sanitized and uses the `url` crate to perform
3232
/// the majority of the parsing effort, and with some extra handling to expose
3333
/// metadata used my many git hosting services
34-
#[derive(Debug, PartialEq)]
34+
#[derive(Debug, PartialEq, Clone)]
3535
pub struct GitUrl {
3636
/// The input url
3737
pub href: String,

0 commit comments

Comments
 (0)