chore: Fix more warnings
This commit is contained in:
parent
80bdd0ee8a
commit
508b97ca7c
@ -218,7 +218,7 @@ where
|
|||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::modules::dns::DnsScore;
|
use crate::modules::dns::DnsScore;
|
||||||
use crate::topology::{self, HAClusterTopology};
|
use crate::topology::HAClusterTopology;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_format_values_as_string() {
|
fn test_format_values_as_string() {
|
||||||
|
@ -156,9 +156,7 @@ impl Topology for K8sAnywhereTopology {
|
|||||||
.get_or_try_init(|| self.try_get_or_install_k8s_client())
|
.get_or_try_init(|| self.try_get_or_install_k8s_client())
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
let k8s_state: &K8sState = k8s_state
|
let k8s_state: &K8sState = k8s_state.as_ref().ok_or(InterpretError::new(
|
||||||
.as_ref()
|
|
||||||
.ok_or(InterpretError::new(
|
|
||||||
"No K8s client could be found or installed".to_string(),
|
"No K8s client could be found or installed".to_string(),
|
||||||
))?;
|
))?;
|
||||||
|
|
||||||
|
@ -147,7 +147,6 @@ mod test {
|
|||||||
modules::dummy::{ErrorScore, PanicScore, SuccessScore},
|
modules::dummy::{ErrorScore, PanicScore, SuccessScore},
|
||||||
topology::HAClusterTopology,
|
topology::HAClusterTopology,
|
||||||
};
|
};
|
||||||
use harmony::{score::Score, topology::Topology};
|
|
||||||
|
|
||||||
fn init_test_maestro() -> Maestro<HAClusterTopology> {
|
fn init_test_maestro() -> Maestro<HAClusterTopology> {
|
||||||
let inventory = Inventory::autoload();
|
let inventory = Inventory::autoload();
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "example"
|
name = "example"
|
||||||
|
edition = "2024"
|
||||||
|
Loading…
Reference in New Issue
Block a user