Skip to content

Commit

Permalink
chore: Rename derivate_channel to derive_channel
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Apr 20, 2024
1 parent d129af2 commit cd0b6da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dioxus-radio"
version = "0.2.3"
version = "0.2.4"
edition = "2021"
description = "Fully-typed global state management with a topics subscription system for Dioxus 🧬"
readme = "./README.md"
Expand Down
6 changes: 3 additions & 3 deletions src/hooks/use_radio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::{
use dioxus_lib::prelude::*;

pub trait RadioChannel<T>: 'static + PartialEq + Eq + Clone {
fn derivate_channel(self, _radio: &T) -> Vec<Self> {
fn derive_channel(self, _radio: &T) -> Vec<Self> {
vec![self]
}
}
Expand Down Expand Up @@ -278,7 +278,7 @@ where
pub fn write(&mut self) -> RadioGuard<Value, Channel> {
let value = self.antenna.peek().station.value.write_unchecked();
RadioGuard {
channels: self.antenna.peek().get_channel().derivate_channel(&*value),
channels: self.antenna.peek().get_channel().derive_channel(&*value),
antenna: self.antenna,
value,
}
Expand Down Expand Up @@ -307,7 +307,7 @@ where
pub fn write_channel(&mut self, channel: Channel) -> RadioGuard<Value, Channel> {
let value = self.antenna.peek().station.value.write_unchecked();
RadioGuard {
channels: channel.derivate_channel(&*value),
channels: channel.derive_channel(&*value),
antenna: self.antenna,
value,
}
Expand Down

0 comments on commit cd0b6da

Please sign in to comment.