Skip to content

Commit 860be95

Browse files
committed
Handle older entries in the index
Closes #71
1 parent fe39cb9 commit 860be95

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dependency.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl Dependency {
6868
optional: optional,
6969
default_features: default_features,
7070
target: target.clone(),
71-
kind: kind,
71+
kind: Some(kind),
7272
}
7373
}
7474

src/git.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub struct Dependency {
3535
pub optional: bool,
3636
pub default_features: bool,
3737
pub target: Option<String>,
38-
pub kind: Kind,
38+
pub kind: Option<Kind>,
3939
}
4040

4141
pub fn serve_index(req: &mut Request) -> CargoResult<Response> {

0 commit comments

Comments
 (0)