chore: make clippy happy (#8068)

This commit is contained in:
Roman Krasiuk
2024-05-03 12:18:41 +02:00
committed by GitHub
parent a590ed7ce5
commit aef1bcc435
34 changed files with 54 additions and 53 deletions

View File

@ -67,13 +67,13 @@ pub struct DnsDiscoveryHandle {
impl DnsDiscoveryHandle {
/// Starts syncing the given link to a tree.
pub fn sync_tree(&mut self, link: &str) -> Result<(), ParseDnsEntryError> {
pub fn sync_tree(&self, link: &str) -> Result<(), ParseDnsEntryError> {
self.sync_tree_with_link(link.parse()?);
Ok(())
}
/// Starts syncing the given link to a tree.
pub fn sync_tree_with_link(&mut self, link: LinkEntry) {
pub fn sync_tree_with_link(&self, link: LinkEntry) {
let _ = self.to_service.send(DnsDiscoveryCommand::SyncTree(link));
}