Skip to content

Commit

Permalink
Auto-merge for PR #94 via VersionBot
Browse files Browse the repository at this point in the history
Fix clippy warnings about cloned Rc
  • Loading branch information
resin-io-modules-versionbot[bot] authored Oct 20, 2017
2 parents 109526a + 1a0c6ac commit 5aa8495
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/).

## v0.7.2 - 2017-10-20

* Fix clippy warnings about cloned Rc #94 [majorz]

## v0.7.1 - 2017-08-08

* Lower log level on get property of expired D-Bus object path #92 [majorz]
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "network_manager"
version = "0.7.1"
version = "0.7.2"
authors = ["Joseph Roberts <[email protected]>", "Zahari Petkov <[email protected]>"]

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl Connection {
let settings = dbus_manager.get_connection_settings(path)?;

Ok(Connection {
dbus_manager: dbus_manager.clone(),
dbus_manager: Rc::clone(dbus_manager),
path: path.to_string(),
settings: settings,
})
Expand Down
2 changes: 1 addition & 1 deletion src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl Device {
let device_type = dbus_manager.get_device_type(path)?;

Ok(Device {
dbus_manager: dbus_manager.clone(),
dbus_manager: Rc::clone(dbus_manager),
path: path.to_string(),
interface: interface,
device_type: device_type,
Expand Down
2 changes: 1 addition & 1 deletion src/wifi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ pub fn new_wifi_device<'a>(
device: &'a Device,
) -> WiFiDevice<'a> {
WiFiDevice {
dbus_manager: dbus_manager.clone(),
dbus_manager: Rc::clone(dbus_manager),
device: device,
}
}
Expand Down

0 comments on commit 5aa8495

Please sign in to comment.