Skip to content

Commit e4a8a59

Browse files
committed
remove wrong complete for Cargo.toml & embedded
1 parent 79dd2ea commit e4a8a59

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/bin/cargo/commands/install.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use crate::command_prelude::*;
2-
use crate::util::toml::is_embedded;
32

43
use anyhow::anyhow;
54
use anyhow::bail;
@@ -15,6 +14,7 @@ use semver::VersionReq;
1514
use cargo_util::paths;
1615
use std::ffi::OsStr;
1716
use std::path::Path;
17+
use tracing::{debug, error, info, trace, warn};
1818

1919
pub fn cli() -> Command {
2020
subcommand("install")
@@ -74,12 +74,6 @@ pub fn cli() -> Command {
7474
if path.is_dir() {
7575
return path.join("Cargo.toml").exists();
7676
}
77-
if path.file_name() == Some(OsStr::new("Cargo.toml")) {
78-
return true;
79-
}
80-
if is_embedded(path) {
81-
return true;
82-
}
8377
false
8478
}),
8579
)),

0 commit comments

Comments
 (0)