mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-06-03 17:29:22 +00:00
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.
This commit is contained in:
parent
d4e9a56e54
commit
56962b1273
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue