Skip to content

Commit 51e0633

Browse files
Rename types.rs to path_update.rs
1 parent d4a1621 commit 51e0633

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/cli/self_update.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ use std::env::consts::EXE_SUFFIX;
4747
use std::fs;
4848
use std::path::{Component, Path, PathBuf};
4949
use std::process::{self, Command};
50-
mod types;
51-
use types::PathUpdateMethod;
50+
mod path_update;
51+
use path_update::PathUpdateMethod;
5252
#[cfg(unix)]
5353
mod unix;
5454
#[cfg(windows)]
File renamed without changes.

src/cli/self_update/unix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use super::*;
2+
use path_update::PathUpdateMethod;
23
use rustup::utils::utils;
34
use rustup::utils::Notification;
45
use std::env;
56
use std::path::{Path, PathBuf};
67
use std::process::{self, Command};
7-
use types::PathUpdateMethod;
88

99
// If the user is trying to install with sudo, on some systems this will
1010
// result in writing root-owned files to the user's home directory, because

src/cli/self_update/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
use super::*;
2+
use path_update::PathUpdateMethod;
23
use rustup::dist::dist::TargetTriple;
34
use rustup::utils::utils;
45
use rustup::utils::Notification;
56
use std::env;
67
use std::env::consts::EXE_SUFFIX;
78
use std::path::Path;
89
use std::process::{self, Command};
9-
use types::PathUpdateMethod;
1010

1111
// Provide guidance about setting up MSVC if it doesn't appear to be
1212
// installed

0 commit comments

Comments
 (0)