Skip to content

Commit

Permalink
source changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Oct 22, 2014
1 parent 98f0dab commit 82e469e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cargo/core/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,11 +449,11 @@ mod tests {
let s1 = SourceId::new(GitKind("master".to_string()), loc);

let loc = "git://github.com/foo/bar".to_url().unwrap();
let mut s2 = SourceId::new(GitKind("master".to_string()), loc);
let s2 = SourceId::new(GitKind("master".to_string()), loc.clone());

assert_eq!(s1, s2);

s2.kind = GitKind("foo".to_string());
assert!(s1 != s2);
let s3 = SourceId::new(GitKind("foo".to_string()), loc);
assert!(s1 != s3);
}
}

0 comments on commit 82e469e

Please sign in to comment.