diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-11-17 14:41:27 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-11-17 14:41:27 +0000 |
commit | 1863c0c7327724479b165c0ce91dcd54663334fd (patch) | |
tree | bafef9dba1060083eccabdad899ddcd08e28e089 /crates/cfg | |
parent | 66bcdcbb3615b0d1d47ca7c4abf2c3dd5ab0b73d (diff) | |
parent | e88b5fe916802a1c3e3bc9685971439e7ad07fa8 (diff) |
Merge #6578
6578: Simpify project_model r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/cfg')
-rw-r--r-- | crates/cfg/src/lib.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/crates/cfg/src/lib.rs b/crates/cfg/src/lib.rs index d0e08cf5f..d88ecf8b0 100644 --- a/crates/cfg/src/lib.rs +++ b/crates/cfg/src/lib.rs | |||
@@ -41,12 +41,6 @@ impl CfgOptions { | |||
41 | self.enabled.insert(CfgAtom::KeyValue { key, value }); | 41 | self.enabled.insert(CfgAtom::KeyValue { key, value }); |
42 | } | 42 | } |
43 | 43 | ||
44 | pub fn append(&mut self, other: &CfgOptions) { | ||
45 | for atom in &other.enabled { | ||
46 | self.enabled.insert(atom.clone()); | ||
47 | } | ||
48 | } | ||
49 | |||
50 | pub fn apply_diff(&mut self, diff: CfgDiff) { | 44 | pub fn apply_diff(&mut self, diff: CfgDiff) { |
51 | for atom in diff.enable { | 45 | for atom in diff.enable { |
52 | self.enabled.insert(atom); | 46 | self.enabled.insert(atom); |