From e51b3977790b77b260b7e651107ebd742d559c80 Mon Sep 17 00:00:00 2001 From: konsti Date: Wed, 13 Dec 2023 14:24:28 +0100 Subject: [PATCH] Typo: editable -> editables (#637) Split out to minimize the diff in #587 --- crates/requirements-txt/src/lib.rs | 4 ++-- .../requirements_txt__test__line-endings-basic.txt.snap | 2 +- ...equirements_txt__test__line-endings-constraints-a.txt.snap | 2 +- ...equirements_txt__test__line-endings-constraints-b.txt.snap | 2 +- .../requirements_txt__test__line-endings-editable.txt.snap | 2 +- .../requirements_txt__test__line-endings-empty.txt.snap | 2 +- .../requirements_txt__test__line-endings-for-poetry.txt.snap | 2 +- .../requirements_txt__test__line-endings-include-a.txt.snap | 2 +- .../requirements_txt__test__line-endings-include-b.txt.snap | 2 +- ...ements_txt__test__line-endings-poetry-with-hashes.txt.snap | 2 +- .../requirements_txt__test__line-endings-small.txt.snap | 2 +- .../requirements_txt__test__line-endings-whitespace.txt.snap | 2 +- .../snapshots/requirements_txt__test__parse-basic.txt.snap | 2 +- .../requirements_txt__test__parse-constraints-a.txt.snap | 2 +- .../requirements_txt__test__parse-constraints-b.txt.snap | 2 +- .../snapshots/requirements_txt__test__parse-empty.txt.snap | 2 +- .../requirements_txt__test__parse-for-poetry.txt.snap | 2 +- .../requirements_txt__test__parse-include-a.txt.snap | 2 +- .../requirements_txt__test__parse-include-b.txt.snap | 2 +- .../requirements_txt__test__parse-poetry-with-hashes.txt.snap | 2 +- .../snapshots/requirements_txt__test__parse-small.txt.snap | 2 +- .../requirements_txt__test__parse-whitespace.txt.snap | 2 +- 22 files changed, 23 insertions(+), 23 deletions(-) diff --git a/crates/requirements-txt/src/lib.rs b/crates/requirements-txt/src/lib.rs index 797a0c1d03c8..de2438f3243d 100644 --- a/crates/requirements-txt/src/lib.rs +++ b/crates/requirements-txt/src/lib.rs @@ -106,7 +106,7 @@ pub struct RequirementsTxt { /// Constraints included with `-c` pub constraints: Vec, /// Editables with `-e` - pub editable: Vec, + pub editables: Vec, } impl RequirementsTxt { @@ -193,7 +193,7 @@ impl RequirementsTxt { data.requirements.push(requirement_entry); } RequirementsTxtStatement::EditableRequirement(editable) => { - data.editable.push(editable); + data.editables.push(editable); } } } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-basic.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-basic.txt.snap index 69c74a6c20ee..959e0c16177f 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-basic.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-basic.txt.snap @@ -144,5 +144,5 @@ RequirementsTxt { }, ], constraints: [], - editable: [], + editables: [], } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-constraints-a.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-constraints-a.txt.snap index c827aec3fd28..7e8059ac58dd 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-constraints-a.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-constraints-a.txt.snap @@ -68,5 +68,5 @@ RequirementsTxt { marker: None, }, ], - editable: [], + editables: [], } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-constraints-b.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-constraints-b.txt.snap index 8f57f3392820..bf771095e1ca 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-constraints-b.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-constraints-b.txt.snap @@ -52,5 +52,5 @@ RequirementsTxt { }, ], constraints: [], - editable: [], + editables: [], } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-editable.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-editable.txt.snap index 4126e442359b..e50759eab466 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-editable.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-editable.txt.snap @@ -54,5 +54,5 @@ RequirementsTxt { }, ], constraints: [], - editable: [], + editables: [], } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-empty.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-empty.txt.snap index e82ded18aef6..eb530dc8db85 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-empty.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-empty.txt.snap @@ -5,5 +5,5 @@ expression: actual RequirementsTxt { requirements: [], constraints: [], - editable: [], + editables: [], } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-for-poetry.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-for-poetry.txt.snap index b64f928546eb..bb4c6c0fc5e2 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-for-poetry.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-for-poetry.txt.snap @@ -97,5 +97,5 @@ RequirementsTxt { }, ], constraints: [], - editable: [], + editables: [], } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-include-a.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-include-a.txt.snap index 4a8db236bde1..af640aff57b9 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-include-a.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-include-a.txt.snap @@ -41,5 +41,5 @@ RequirementsTxt { }, ], constraints: [], - editable: [], + editables: [], } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-include-b.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-include-b.txt.snap index efdc116111e5..53cb7234261a 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-include-b.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-include-b.txt.snap @@ -18,5 +18,5 @@ RequirementsTxt { }, ], constraints: [], - editable: [], + editables: [], } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-poetry-with-hashes.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-poetry-with-hashes.txt.snap index 2440629dde27..4e208f75fcbf 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-poetry-with-hashes.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-poetry-with-hashes.txt.snap @@ -281,5 +281,5 @@ RequirementsTxt { }, ], constraints: [], - editable: [], + editables: [], } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-small.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-small.txt.snap index 55a46270362d..2672a3784d37 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-small.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-small.txt.snap @@ -52,5 +52,5 @@ RequirementsTxt { }, ], constraints: [], - editable: [], + editables: [], } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-whitespace.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-whitespace.txt.snap index 4126e442359b..e50759eab466 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-whitespace.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__line-endings-whitespace.txt.snap @@ -54,5 +54,5 @@ RequirementsTxt { }, ], constraints: [], - editable: [], + editables: [], } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-basic.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-basic.txt.snap index 69c74a6c20ee..959e0c16177f 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-basic.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-basic.txt.snap @@ -144,5 +144,5 @@ RequirementsTxt { }, ], constraints: [], - editable: [], + editables: [], } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-constraints-a.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-constraints-a.txt.snap index c827aec3fd28..7e8059ac58dd 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-constraints-a.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-constraints-a.txt.snap @@ -68,5 +68,5 @@ RequirementsTxt { marker: None, }, ], - editable: [], + editables: [], } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-constraints-b.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-constraints-b.txt.snap index 8f57f3392820..bf771095e1ca 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-constraints-b.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-constraints-b.txt.snap @@ -52,5 +52,5 @@ RequirementsTxt { }, ], constraints: [], - editable: [], + editables: [], } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-empty.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-empty.txt.snap index e82ded18aef6..eb530dc8db85 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-empty.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-empty.txt.snap @@ -5,5 +5,5 @@ expression: actual RequirementsTxt { requirements: [], constraints: [], - editable: [], + editables: [], } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-for-poetry.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-for-poetry.txt.snap index b64f928546eb..bb4c6c0fc5e2 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-for-poetry.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-for-poetry.txt.snap @@ -97,5 +97,5 @@ RequirementsTxt { }, ], constraints: [], - editable: [], + editables: [], } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-include-a.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-include-a.txt.snap index 4a8db236bde1..af640aff57b9 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-include-a.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-include-a.txt.snap @@ -41,5 +41,5 @@ RequirementsTxt { }, ], constraints: [], - editable: [], + editables: [], } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-include-b.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-include-b.txt.snap index efdc116111e5..53cb7234261a 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-include-b.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-include-b.txt.snap @@ -18,5 +18,5 @@ RequirementsTxt { }, ], constraints: [], - editable: [], + editables: [], } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-poetry-with-hashes.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-poetry-with-hashes.txt.snap index 2440629dde27..4e208f75fcbf 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-poetry-with-hashes.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-poetry-with-hashes.txt.snap @@ -281,5 +281,5 @@ RequirementsTxt { }, ], constraints: [], - editable: [], + editables: [], } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-small.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-small.txt.snap index 55a46270362d..2672a3784d37 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-small.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-small.txt.snap @@ -52,5 +52,5 @@ RequirementsTxt { }, ], constraints: [], - editable: [], + editables: [], } diff --git a/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-whitespace.txt.snap b/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-whitespace.txt.snap index 4126e442359b..e50759eab466 100644 --- a/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-whitespace.txt.snap +++ b/crates/requirements-txt/src/snapshots/requirements_txt__test__parse-whitespace.txt.snap @@ -54,5 +54,5 @@ RequirementsTxt { }, ], constraints: [], - editable: [], + editables: [], }