Skip to content

Commit 6b009ce

Browse files
committed
Fix more lint issues
1 parent aec4abd commit 6b009ce

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

‎Cargo.toml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ edition = "2024"
55
authors = ["Fabian Affolter <fabian@affolter-engineering.ch>"]
66
description = "Web application to control OpenWRT and Teltonika devices via JSON-RPC API"
77
license = "MIT"
8-
homepage = "https://github.com/affolter-engineering/wrtctrl"
98
repository = "https://github.com/affolter-engineering/wrtctrl"
109

1110
[lib]

‎src/app.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -931,12 +931,12 @@ fn DeviceCard(device: DeviceConfig, show_details: RwSignal<Option<String>>) -> i
931931
},
932932
);
933933

934-
let reboot_action = create_action(move |device: &DeviceConfig| {
934+
let reboot_action = Action::new(move |device: &DeviceConfig| {
935935
let device = device.clone();
936936
async move { reboot_device_action(device).await }
937937
});
938938

939-
create_effect(move |_| {
939+
Effect::new(move |_| {
940940
if let Some(result) = reboot_action.value().get() {
941941
match result {
942942
Ok(_) => {
@@ -1066,7 +1066,7 @@ fn DeviceCard(device: DeviceConfig, show_details: RwSignal<Option<String>>) -> i
10661066
</Transition>
10671067
</div>
10681068

1069-
{move || card_footer.get().map(|(title, summary)| view! {
1069+
{move || card_footer.get().map(|(_title, summary)| view! {
10701070
<div class="mt-3 border-t border-gray-700/50 pt-2 flex items-center justify-between gap-2 text-[11px]">
10711071
<span class="text-gray-400">{summary}</span>
10721072
</div>

‎src/main.rs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ async fn main() {
6161
let contents = std::fs::read_to_string(&candidate)
6262
.map_err(|e| format!("Failed reading {source}: {e}"))?;
6363

64-
let parsed: toml::Value = contents
65-
.parse()
64+
let parsed: toml::Value = toml::from_str(&contents)
6665
.map_err(|e| format!("Invalid TOML in {source}: {e}"))?;
6766

6867
let server_table = parsed.get("server").and_then(|value| value.as_table());

0 commit comments

Comments
 (0)