Skip to content

Commit d490ce8

Browse files
authored
chore: Address new linter warning (MISMATCHED_LIFETIME_SYNTAXES) (#1371)
Generated code causes linter warning starting from rust 1.89 Change-Id: Ic6dab006dd76d82a505b5e291fca19fb1f970b6a Signed-off-by: Artem Goncharov <artem.goncharov@gmail.com> Changes are triggered by https://review.opendev.org/957022
1 parent ed1629b commit d490ce8

File tree

1,507 files changed

+3131
-2168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,507 files changed

+3131
-2168
lines changed

openstack_cli/src/block_storage/v3/attachment/create_327.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ use serde_json::Value;
6161
/// Expected format of the input parameter 'body':
6262
///
6363
/// ```text
64-
///
6564
/// {
6665
/// "attachment":
6766
/// {
@@ -71,13 +70,11 @@ use serde_json::Value;
7170
/// "mode": "null|rw|ro"
7271
/// }
7372
/// }
74-
///
7573
/// ```
7674
///
7775
/// Example connector:
7876
///
7977
/// ```text
80-
///
8178
/// {
8279
/// "connector":
8380
/// {
@@ -91,7 +88,6 @@ use serde_json::Value;
9188
/// "mode": "null|rw|ro"
9289
/// }
9390
/// }
94-
///
9591
/// ```
9692
///
9793
/// NOTE all that's required for a reserve is volume_uuid and an instance_uuid.

openstack_cli/src/block_storage/v3/attachment/create_354.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ use serde_json::Value;
6262
/// Expected format of the input parameter 'body':
6363
///
6464
/// ```text
65-
///
6665
/// {
6766
/// "attachment":
6867
/// {
@@ -72,13 +71,11 @@ use serde_json::Value;
7271
/// "mode": "null|rw|ro"
7372
/// }
7473
/// }
75-
///
7674
/// ```
7775
///
7876
/// Example connector:
7977
///
8078
/// ```text
81-
///
8279
/// {
8380
/// "connector":
8481
/// {
@@ -92,7 +89,6 @@ use serde_json::Value;
9289
/// "mode": "null|rw|ro"
9390
/// }
9491
/// }
95-
///
9692
/// ```
9793
///
9894
/// NOTE all that's required for a reserve is volume_uuid and an instance_uuid.

openstack_cli/src/block_storage/v3/attachment/set_327.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ use serde_json::Value;
4242
/// Expected format of the input parameter 'body':
4343
///
4444
/// ```text
45-
///
4645
/// {
4746
/// "attachment":
4847
/// {
@@ -59,7 +58,6 @@ use serde_json::Value;
5958
/// }
6059
/// }
6160
/// }
62-
///
6361
/// ```
6462
#[derive(Args)]
6563
pub struct AttachmentCommand {

openstack_cli/src/block_storage/v3/consistencygroup/set.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ use serde_json::Value;
3939
/// Expected format of the input parameter 'body':
4040
///
4141
/// ```text
42-
///
4342
/// {
4443
/// "consistencygroup":
4544
/// {
@@ -49,7 +48,6 @@ use serde_json::Value;
4948
/// "remove_volumes": "volume-uuid-8,volume-uuid-9,..."
5049
/// }
5150
/// }
52-
///
5351
/// ```
5452
#[derive(Args)]
5553
pub struct ConsistencygroupCommand {

openstack_cli/src/block_storage/v3/group/set_313.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ use openstack_types::block_storage::v3::group::response::set::GroupResponse;
3939
/// Expected format of the input parameter 'body':
4040
///
4141
/// ```text
42-
///
4342
/// {
4443
/// "group":
4544
/// {
@@ -49,7 +48,6 @@ use openstack_types::block_storage::v3::group::response::set::GroupResponse;
4948
/// "remove_volumes": "volume-uuid-8,volume-uuid-9,..."
5049
/// }
5150
/// }
52-
///
5351
/// ```
5452
#[derive(Args)]
5553
pub struct GroupCommand {

openstack_cli/src/block_storage/v3/host/show.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use openstack_types::block_storage::v3::host::response::get::HostResponse;
3636
///
3737
/// | | | | --- | --- | | param req: | security context | | param id: |
3838
/// hostname | | returns: | dict -- the host resources dictionary. ex.:
39-
/// ` {'host': [{'resource': D},..]} D: {'host': 'hostname','project': 'admin', 'volume_count': 1, 'total_volume_gb': 2048} `
39+
/// `{'host': [{'resource': D},..]} D: {'host': 'hostname','project': 'admin', 'volume_count': 1, 'total_volume_gb': 2048}`
4040
/// |
4141
#[derive(Args)]
4242
pub struct HostCommand {

openstack_cli/src/block_storage/v3/manageable_snapshot/create.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ use serde_json::Value;
4747
/// Required HTTP Body:
4848
///
4949
/// ```text
50-
///
5150
/// {
5251
/// "snapshot":
5352
/// {
@@ -56,7 +55,6 @@ use serde_json::Value;
5655
/// "<Driver-specific reference to the existing storage object>"
5756
/// }
5857
/// }
59-
///
6058
/// ```
6159
///
6260
/// See the appropriate Cinder drivers' implementations of the manage_snapshot
@@ -73,11 +71,9 @@ use serde_json::Value;
7371
/// Optional elements to 'snapshot' are:
7472
///
7573
/// ```text
76-
///
7774
/// name A name for the new snapshot.
7875
/// description A description for the new snapshot.
7976
/// metadata Key/value pairs to be associated with the new snapshot.
80-
///
8177
/// ```
8278
#[derive(Args)]
8379
pub struct ManageableSnapshotCommand {

openstack_cli/src/block_storage/v3/manageable_volume/create.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,13 @@ use serde_json::Value;
4848
/// Required HTTP Body:
4949
///
5050
/// ```text
51-
///
5251
/// {
5352
/// "volume": {
5453
/// "host": "<Cinder host on which the existing storage resides>",
5554
/// "cluster": "<Cinder cluster on which the storage resides>",
5655
/// "ref": "<Driver-specific reference to existing storage object>"
5756
/// }
5857
/// }
59-
///
6058
/// ```
6159
///
6260
/// See the appropriate Cinder drivers' implementations of the manage_volume
@@ -72,7 +70,6 @@ use serde_json::Value;
7270
/// Optional elements to 'volume' are:
7371
///
7472
/// ```text
75-
///
7673
/// name A name for the new volume.
7774
/// description A description for the new volume.
7875
/// volume_type ID or name of a volume type to associate with
@@ -87,7 +84,6 @@ use serde_json::Value;
8784
/// availability_zone The availability zone to associate with the new
8885
/// volume.
8986
/// bootable If set to True, marks the volume as bootable.
90-
///
9187
/// ```
9288
#[derive(Args)]
9389
pub struct ManageableVolumeCommand {

openstack_cli/src/block_storage/v3/snapshot_manage/create.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ use serde_json::Value;
4747
/// Required HTTP Body:
4848
///
4949
/// ```text
50-
///
5150
/// {
5251
/// "snapshot":
5352
/// {
@@ -56,7 +55,6 @@ use serde_json::Value;
5655
/// "<Driver-specific reference to the existing storage object>"
5756
/// }
5857
/// }
59-
///
6058
/// ```
6159
///
6260
/// See the appropriate Cinder drivers' implementations of the manage_snapshot
@@ -73,11 +71,9 @@ use serde_json::Value;
7371
/// Optional elements to 'snapshot' are:
7472
///
7573
/// ```text
76-
///
7774
/// name A name for the new snapshot.
7875
/// description A description for the new snapshot.
7976
/// metadata Key/value pairs to be associated with the new snapshot.
80-
///
8177
/// ```
8278
#[derive(Args)]
8379
pub struct SnapshotManageCommand {

openstack_cli/src/block_storage/v3/volume_manage/create_30.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,13 @@ use serde_json::Value;
4848
/// Required HTTP Body:
4949
///
5050
/// ```text
51-
///
5251
/// {
5352
/// "volume": {
5453
/// "host": "<Cinder host on which the existing storage resides>",
5554
/// "cluster": "<Cinder cluster on which the storage resides>",
5655
/// "ref": "<Driver-specific reference to existing storage object>"
5756
/// }
5857
/// }
59-
///
6058
/// ```
6159
///
6260
/// See the appropriate Cinder drivers' implementations of the manage_volume
@@ -72,7 +70,6 @@ use serde_json::Value;
7270
/// Optional elements to 'volume' are:
7371
///
7472
/// ```text
75-
///
7673
/// name A name for the new volume.
7774
/// description A description for the new volume.
7875
/// volume_type ID or name of a volume type to associate with
@@ -87,7 +84,6 @@ use serde_json::Value;
8784
/// availability_zone The availability zone to associate with the new
8885
/// volume.
8986
/// bootable If set to True, marks the volume as bootable.
90-
///
9187
/// ```
9288
#[derive(Args)]
9389
pub struct VolumeManageCommand {

0 commit comments

Comments
 (0)