Skip to content

Commit 61813d9

Browse files
committed
fix dupe word typos
1 parent 9210810 commit 61813d9

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

crates/cargo-util/src/paths.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ pub fn create_dir_all_excluded_from_backups_atomic(p: impl AsRef<Path>) -> Resul
636636
// it from backups, then rename it to the desired name. If we created the
637637
// directory directly where it should be and then excluded it from backups
638638
// we would risk a situation where cargo is interrupted right after the directory
639-
// creation but before the exclusion the the directory would remain non-excluded from
639+
// creation but before the exclusion the directory would remain non-excluded from
640640
// backups because we only perform exclusion right after we created the directory
641641
// ourselves.
642642
//
@@ -651,7 +651,7 @@ pub fn create_dir_all_excluded_from_backups_atomic(p: impl AsRef<Path>) -> Resul
651651
// the directory being created concurrently by another thread or process as success,
652652
// hence the check below to follow the existing behavior. If we get an error at
653653
// rename() and suddently the directory (which didn't exist a moment earlier) exists
654-
// we can infer from it it's another cargo process doing work.
654+
// we can infer from it's another cargo process doing work.
655655
if let Err(e) = fs::rename(tempdir.path(), path) {
656656
if !path.exists() {
657657
return Err(anyhow::Error::from(e));

src/cargo/core/compiler/fingerprint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,7 @@ fn build_script_local_fingerprints(
14931493
// figure out a better scheme where a package fingerprint
14941494
// may be a string (like for a registry) or a list of files
14951495
// (like for a path dependency). Those list of files would
1496-
// be stored here rather than the the mtime of them.
1496+
// be stored here rather than the mtime of them.
14971497
Some(f) => {
14981498
let s = f()?;
14991499
debug!(

src/cargo/core/compiler/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,7 @@ fn on_stderr_line_inner(
14361436
let rendered = if options.color {
14371437
msg.rendered
14381438
} else {
1439-
// Strip only fails if the the Writer fails, which is Cursor
1439+
// Strip only fails if the Writer fails, which is Cursor
14401440
// on a Vec, which should never fail.
14411441
strip_ansi_escapes::strip(&msg.rendered)
14421442
.map(|v| String::from_utf8(v).expect("utf8"))

src/cargo/core/compiler/timings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ impl<'cfg> Timings<'cfg> {
272272
Some(state) => state,
273273
None => return,
274274
};
275-
// Don't take samples too too frequently, even if requested.
275+
// Don't take samples too frequently, even if requested.
276276
let now = Instant::now();
277277
if self.last_cpu_recording.elapsed() < Duration::from_millis(100) {
278278
return;

src/cargo/core/resolver/features.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub struct ResolvedFeatures {
6767
/// Options for how the feature resolver works.
6868
#[derive(Default)]
6969
pub struct FeatureOpts {
70-
/// Build deps and proc-macros will not share share features with other dep kinds,
70+
/// Build deps and proc-macros will not share features with other dep kinds,
7171
/// and so won't artifact targets.
7272
/// In other terms, if true, features associated with certain kinds of dependencies
7373
/// will only be unified together.

src/cargo/core/resolver/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ fn activate_deps_loop(
416416
// global cache which lists sets of packages where, when
417417
// activated, the dependency is unresolvable.
418418
//
419-
// If any our our frame's dependencies fit in that bucket,
419+
// If any our frame's dependencies fit in that bucket,
420420
// aka known unresolvable, then we extend our own set of
421421
// conflicting activations with theirs. We can do this
422422
// because the set of conflicts we found implies the

src/cargo/sources/git/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ pub fn fetch(
808808

809809
// We reuse repositories quite a lot, so before we go through and update the
810810
// repo check to see if it's a little too old and could benefit from a gc.
811-
// In theory this shouldn't be too too expensive compared to the network
811+
// In theory this shouldn't be too expensive compared to the network
812812
// request we're about to issue.
813813
maybe_gc_repo(repo)?;
814814

tests/testsuite/credential_process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Only one of these values may be set, remove one or the other to proceed.
139139
/// * Create a simple `foo` project to run the test against.
140140
/// * Configure the credential-process config.
141141
///
142-
/// Returns returns the simple `foo` project to test against and the API server handle.
142+
/// Returns the simple `foo` project to test against and the API server handle.
143143
fn get_token_test() -> (Project, TestRegistry) {
144144
// API server that checks that the token is included correctly.
145145
let server = registry::RegistryBuilder::new()

tests/testsuite/lto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ fn verify_lto(output: &Output, krate: &str, krate_info: &str, expected_lto: Lto)
482482
fn cdylib_and_rlib() {
483483
let p = project_with_dep("'cdylib', 'rlib'");
484484
let output = p.cargo("build --release -v").exec_with_output().unwrap();
485-
// `registry` is ObjectAndBitcode because because it needs Object for the
485+
// `registry` is ObjectAndBitcode because it needs Object for the
486486
// rlib, and Bitcode for the cdylib (which doesn't support LTO).
487487
verify_lto(
488488
&output,

0 commit comments

Comments
 (0)