Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(toml): Remove unused method #12961

Merged
merged 1 commit into from
Nov 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions src/cargo/util/toml/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1548,9 +1548,6 @@ pub trait WorkspaceInherit {
/// This is the workspace table that is being inherited from.
/// For example `[workspace.dependencies]` would be the table "dependencies"
fn inherit_toml_table(&self) -> &str;

/// This is used to output the value of the implementors `workspace` field
fn workspace(&self) -> bool;
}

impl<T, W: WorkspaceInherit> schema::MaybeWorkspace<T, W> {
Expand Down Expand Up @@ -1598,10 +1595,6 @@ impl WorkspaceInherit for schema::TomlWorkspaceField {
fn inherit_toml_table(&self) -> &str {
"package"
}

fn workspace(&self) -> bool {
self.workspace
}
}

impl schema::TomlWorkspaceDependency {
Expand Down Expand Up @@ -1684,10 +1677,6 @@ impl WorkspaceInherit for schema::TomlWorkspaceDependency {
fn inherit_toml_table(&self) -> &str {
"dependencies"
}

fn workspace(&self) -> bool {
self.workspace
}
}

impl<P: ResolveToPath + Clone> schema::TomlDependency<P> {
Expand Down