mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
install: remove three todos
This commit is contained in:
parent
68c91c17ba
commit
74d04c26f0
1 changed files with 0 additions and 3 deletions
|
@ -217,7 +217,6 @@ pub fn uu_app() -> Command {
|
||||||
.action(ArgAction::SetTrue),
|
.action(ArgAction::SetTrue),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
// TODO implement flag
|
|
||||||
Arg::new(OPT_CREATE_LEADING)
|
Arg::new(OPT_CREATE_LEADING)
|
||||||
.short('D')
|
.short('D')
|
||||||
.help(
|
.help(
|
||||||
|
@ -274,7 +273,6 @@ pub fn uu_app() -> Command {
|
||||||
)
|
)
|
||||||
.arg(backup_control::arguments::suffix())
|
.arg(backup_control::arguments::suffix())
|
||||||
.arg(
|
.arg(
|
||||||
// TODO implement flag
|
|
||||||
Arg::new(OPT_TARGET_DIRECTORY)
|
Arg::new(OPT_TARGET_DIRECTORY)
|
||||||
.short('t')
|
.short('t')
|
||||||
.long(OPT_TARGET_DIRECTORY)
|
.long(OPT_TARGET_DIRECTORY)
|
||||||
|
@ -732,7 +730,6 @@ fn perform_backup(to: &Path, b: &Behavior) -> UResult<Option<PathBuf>> {
|
||||||
}
|
}
|
||||||
let backup_path = backup_control::get_backup_path(b.backup_mode, to, &b.suffix);
|
let backup_path = backup_control::get_backup_path(b.backup_mode, to, &b.suffix);
|
||||||
if let Some(ref backup_path) = backup_path {
|
if let Some(ref backup_path) = backup_path {
|
||||||
// TODO!!
|
|
||||||
if let Err(err) = fs::rename(to, backup_path) {
|
if let Err(err) = fs::rename(to, backup_path) {
|
||||||
return Err(
|
return Err(
|
||||||
InstallError::BackupFailed(to.to_path_buf(), backup_path.clone(), err).into(),
|
InstallError::BackupFailed(to.to_path_buf(), backup_path.clone(), err).into(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue