Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit e237615

Browse files
committed
Minor code cleanups
1 parent e0e3530 commit e237615

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

ci/order-crates-for-publishing.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ def load_metadata():
2121
return json.loads(subprocess.Popen(
2222
cmd, shell=True, stdout=subprocess.PIPE).communicate()[0])
2323

24-
no_explicit_version_specified = '*'
25-
26-
2724
# Consider a situation where a crate wants to use developing-oriented code
2825
# inside their integration tests and benchmarks, like creating malformed
2926
# data or omitting signature verifications. Ideally, the code should be
@@ -51,13 +48,14 @@ def load_metadata():
5148
# special-cased dev dependencies from its `dependency_graph` and further
5249
# processing.
5350
def is_self_dev_dep_with_dev_context_only_utils(package, dependency):
54-
is_special_cased = False
51+
no_explicit_version = '*'
5552

53+
is_special_cased = False
5654
if (dependency['kind'] == 'dev' and
5755
dependency['name'] == package['name'] and
5856
'dev-context-only-utils' in dependency['features'] and
5957
'path' in dependency):
60-
if dependency['req'] == no_explicit_version_specified:
58+
if dependency['req'] == no_explicit_version:
6159
is_special_cased = True
6260
else:
6361
# it's likely `{ workspace = true, ... }` is used, which implicitly pulls the

0 commit comments

Comments
 (0)