mirror of
https://github.com/rust-lang/cargo
synced 2024-10-06 15:59:39 +00:00
fix typos caught by codespell
This commit is contained in:
parent
aa8ee2dfcc
commit
74076d2a04
|
@ -5,7 +5,7 @@ use util::{CargoResult, Fresh, Dirty, Freshness};
|
|||
pub struct Job { dirty: Work, fresh: Work }
|
||||
|
||||
/// Each proc should send its description before starting.
|
||||
/// It should send either once or close immediatly.
|
||||
/// It should send either once or close immediately.
|
||||
pub struct Work {
|
||||
inner: Box<FnBox<Sender<String>, CargoResult<()>> + Send>,
|
||||
}
|
||||
|
|
|
@ -198,7 +198,7 @@ impl<'a> JobQueue<'a> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
// This isn't super trivial becuase we don't want to print loads and
|
||||
// This isn't super trivial because we don't want to print loads and
|
||||
// loads of information to the console, but we also want to produce a
|
||||
// faithful representation of what's happening. This is somewhat nuanced
|
||||
// as a package can start compiling *very* early on because of custom
|
||||
|
|
|
@ -316,7 +316,7 @@ impl<'a, 'b> RegistrySource<'a, 'b> {
|
|||
// TODO: don't download into memory (curl-rust doesn't expose it)
|
||||
let resp = try!(handle.get(url.to_string()).follow_redirects(true).exec());
|
||||
if resp.get_code() != 200 && resp.get_code() != 0 {
|
||||
return Err(internal(format!("Failed to get 200 reponse from {}\n{}",
|
||||
return Err(internal(format!("Failed to get 200 response from {}\n{}",
|
||||
url, resp)))
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ use std::path::Path;
|
|||
|
||||
/// A helper structure to represent the modification time of a file.
|
||||
///
|
||||
/// The actual value contined within is platform-specific and does not have the
|
||||
/// The actual value contained within is platform-specific and does not have the
|
||||
/// same meaning across platforms, but comparisons and stringification can be
|
||||
/// significant among platforms.
|
||||
#[derive(Eq, PartialEq, Ord, PartialOrd, Debug, Copy, Clone)]
|
||||
|
|
|
@ -251,7 +251,7 @@ fn handle(response: result::Result<http::Response, curl::ErrCode>)
|
|||
impl fmt::Display for Error {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
match *self {
|
||||
Error::NonUtf8Body => write!(f, "reponse body was not utf-8"),
|
||||
Error::NonUtf8Body => write!(f, "response body was not utf-8"),
|
||||
Error::Curl(ref err) => write!(f, "http error: {}", err),
|
||||
Error::NotOkResponse(ref resp) => {
|
||||
write!(f, "failed to get a 200 OK response: {}", resp)
|
||||
|
|
|
@ -68,7 +68,7 @@ test!(bench_tarname {
|
|||
|
||||
let expected_stdout = format!("\
|
||||
{compiling} foo v0.0.1 ({dir})
|
||||
{runnning} target[..]release[..]bin2[..]
|
||||
{running} target[..]release[..]bin2[..]
|
||||
|
||||
running 1 test
|
||||
test run2 ... bench: 0 ns/iter (+/- 0)
|
||||
|
@ -77,7 +77,7 @@ test result: ok. 0 passed; 0 failed; 0 ignored; 1 measured
|
|||
|
||||
",
|
||||
compiling = COMPILING,
|
||||
runnning = RUNNING,
|
||||
running = RUNNING,
|
||||
dir = prj.url());
|
||||
|
||||
assert_that(prj.cargo_process("bench").arg("--bench").arg("bin2"),
|
||||
|
|
|
@ -225,7 +225,7 @@ test!(cargo_compile_git_dep_tag {
|
|||
"#)
|
||||
}).unwrap();
|
||||
|
||||
// Make a tag correponding to the current HEAD
|
||||
// Make a tag corresponding to the current HEAD
|
||||
let repo = git2::Repository::open(&git_project.root()).unwrap();
|
||||
let head = repo.head().unwrap().target().unwrap();
|
||||
repo.tag("v0.1.0",
|
||||
|
|
Loading…
Reference in a new issue