Skip to content

Commit 84d89ea

Browse files
authored
cleanup(storage): use Some not Option::Some (#2363)
1 parent 670a66b commit 84d89ea

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/storage/src/client.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ impl ReadObject {
394394
where
395395
T: Into<i64>,
396396
{
397-
self.request.if_generation_match = Option::Some(v.into());
397+
self.request.if_generation_match = Some(v.into());
398398
self
399399
}
400400

@@ -412,7 +412,7 @@ impl ReadObject {
412412
where
413413
T: Into<i64>,
414414
{
415-
self.request.if_generation_not_match = Option::Some(v.into());
415+
self.request.if_generation_not_match = Some(v.into());
416416
self
417417
}
418418

@@ -430,7 +430,7 @@ impl ReadObject {
430430
where
431431
T: Into<i64>,
432432
{
433-
self.request.if_metageneration_match = Option::Some(v.into());
433+
self.request.if_metageneration_match = Some(v.into());
434434
self
435435
}
436436

@@ -448,7 +448,7 @@ impl ReadObject {
448448
where
449449
T: Into<i64>,
450450
{
451-
self.request.if_metageneration_not_match = Option::Some(v.into());
451+
self.request.if_metageneration_not_match = Some(v.into());
452452
self
453453
}
454454

@@ -466,7 +466,7 @@ impl ReadObject {
466466
where
467467
T: Into<control::model::CommonObjectRequestParams>,
468468
{
469-
self.request.common_object_request_params = Option::Some(v.into());
469+
self.request.common_object_request_params = Some(v.into());
470470
self
471471
}
472472

0 commit comments

Comments
 (0)