mirror of
https://github.com/rust-lang/cargo
synced 2024-09-15 22:09:55 +00:00
Leave off ^
, since it's the default.
This commit is contained in:
parent
8af9e95d35
commit
94aa4ae240
|
@ -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))
|
||||
))
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue