Skip to content

Commit

Permalink
remove name
Browse files Browse the repository at this point in the history
bump version
  • Loading branch information
takotori committed Dec 11, 2023
1 parent 6b351f3 commit 4a8bd48
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "re_set-lib"
version = "0.7.3"
version = "0.7.4"
edition = "2021"
description = "Data structure library for ReSet"
repository = "https://github.com/Xetibo/ReSet-Lib"
Expand Down
9 changes: 0 additions & 9 deletions src/network/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,6 @@ pub struct ConnectionSettings {
pub autoconnect: bool,
pub autoconnect_priority: i32,
pub metered: i32,
pub name: String,
pub device_type: String,
pub uuid: String,
pub zone: Trust,
Expand All @@ -1153,12 +1152,6 @@ impl PropMapConvert for ConnectionSettings {
} else {
String::from("")
};
let name_opt: Option<&String> = prop_cast(&map, "name");
let name = if let Some(name_opt) = name_opt {
name_opt.clone()
} else {
String::from("connection")
};
let device_type_opt: Option<&String> = prop_cast(&map, "type");
let device_type = if let Some(device_type_opt) = device_type_opt {
device_type_opt.clone()
Expand All @@ -1169,7 +1162,6 @@ impl PropMapConvert for ConnectionSettings {
autoconnect: *autoconnect.unwrap_or(&false),
autoconnect_priority: *autoconnect_priority.unwrap_or(&-1),
metered: *metered.unwrap_or(&0),
name,
device_type,
uuid,
zone,
Expand All @@ -1184,7 +1176,6 @@ impl PropMapConvert for ConnectionSettings {
Variant(Box::new(self.autoconnect_priority)),
);
map.insert("metered".into(), Variant(Box::new(self.metered)));
map.insert("name".into(), Variant(Box::new(self.name.clone())));
map.insert(
"device-type".into(),
Variant(Box::new(self.device_type.clone())),
Expand Down

0 comments on commit 4a8bd48

Please sign in to comment.