diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-05-08 14:08:08 +0300 |
---|---|---|
committer | Sebastian Dröge <slomo@coaxion.net> | 2020-05-08 14:23:03 +0300 |
commit | 56962b127370832efff5757722ce13437768fcc3 (patch) | |
tree | 1247d9a42843c7657cc34a4f9bb80c34f2222c85 /net | |
parent | d4e9a56e549359e01b3fcf690428d097cb944650 (diff) |
rusoto/s3sink: Don't use mem::replace() for a simple assignment
The return value of mem::replace() would be the old value but we don't
really need that here, so simply do an assignment instead.
Diffstat (limited to 'net')
-rw-r--r-- | net/rusoto/src/s3sink.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rusoto/src/s3sink.rs b/net/rusoto/src/s3sink.rs index 0bdb2f076..d69adc700 100644 --- a/net/rusoto/src/s3sink.rs +++ b/net/rusoto/src/s3sink.rs @@ -447,7 +447,7 @@ impl ObjectImpl for S3Sink { .unwrap(); if settings.region != region { let mut client = self.client.lock().unwrap(); - std::mem::replace(&mut *client, S3Client::new(region.clone())); + *client = S3Client::new(region.clone()); settings.region = region; } } |