File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
4
4
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
5
5
This project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
6
6
7
+ ## v0.9.1 - 2018-03-06
8
+
9
+ * NetworkManager::get_state uses incorrect D-Bus type #114 [ majorz]
10
+
7
11
## v0.9.0 - 2018-02-15
8
12
9
13
* Error handling with error-chain #110 [ majorz]
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " network-manager"
3
- version = " 0.9.0 "
3
+ version = " 0.9.1 "
4
4
authors = [" Zahari Petkov <zahari@resin.io>" , " Aaron Brodersen <aaron@resin.io>" ]
5
5
description = " Rust NetworkManager bindings"
6
6
homepage = " https://github.com/resin-io-modules/network-manager"
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ impl DBusNetworkManager {
54
54
let response = self . dbus
55
55
. call ( NM_SERVICE_PATH , NM_SERVICE_INTERFACE , "state" ) ?;
56
56
57
- let state: i64 = self . dbus . extract ( & response) ?;
57
+ let state: u32 = self . dbus . extract ( & response) ?;
58
58
59
59
Ok ( NetworkManagerState :: from ( state) )
60
60
}
Original file line number Diff line number Diff line change @@ -134,8 +134,8 @@ pub enum NetworkManagerState {
134
134
ConnectedGlobal ,
135
135
}
136
136
137
- impl From < i64 > for NetworkManagerState {
138
- fn from ( state : i64 ) -> Self {
137
+ impl From < u32 > for NetworkManagerState {
138
+ fn from ( state : u32 ) -> Self {
139
139
match state {
140
140
0 => NetworkManagerState :: Unknown ,
141
141
10 => NetworkManagerState :: Asleep ,
You can’t perform that action at this time.
0 commit comments