Leave off ^, since it's the default.

This commit is contained in:
Casey Rodarmor 2017-02-11 13:56:38 -08:00
parent 8af9e95d35
commit 94aa4ae240
2 changed files with 3 additions and 3 deletions

View file

@ -424,7 +424,7 @@ pub fn search(query: &str,
let list_items = crates.iter()
.map(|krate| (
format!("{} = \"^{}\"", krate.name, krate.max_version),
format!("{} = \"{}\"", krate.name, krate.max_version),
krate.description.as_ref().map(|desc|
truncate_with_ellipsis(&desc.replace("\n", " "), 128))
))

View file

@ -87,7 +87,7 @@ fn simple() {
.with_stderr("\
[UPDATING] registry `[..]`")
.with_stdout("\
hoare = \"^0.1.1\" # Design by contract style assertions for Rust"));
hoare = \"0.1.1\" # Design by contract style assertions for Rust"));
}
#[test]
@ -139,7 +139,7 @@ fn multiple_query_params() {
.with_stderr("\
[UPDATING] registry `[..]`")
.with_stdout("\
hoare = \"^0.1.1\" # Design by contract style assertions for Rust"));
hoare = \"0.1.1\" # Design by contract style assertions for Rust"));
}
#[test]