fix: resolve Clippy warnings across all workspace targets
This commit is contained in:
@@ -153,15 +153,17 @@ impl VirtualMachine {
|
||||
let mut owners = [None, None];
|
||||
for value in &values {
|
||||
if let Value::String(content) = value {
|
||||
if let Some(image) = &self.validated_image {
|
||||
if owners[0].is_none() && image.retains_string(content) {
|
||||
owners[0] = Some(image.string_retention());
|
||||
}
|
||||
if let Some(image) = &self.validated_image
|
||||
&& owners[0].is_none()
|
||||
&& image.retains_string(content)
|
||||
{
|
||||
owners[0] = Some(image.string_retention());
|
||||
}
|
||||
if let Some(strings) = &self.strings {
|
||||
if owners[1].is_none() && strings.retains(content) {
|
||||
owners[1] = Some(strings.retention());
|
||||
}
|
||||
if let Some(strings) = &self.strings
|
||||
&& owners[1].is_none()
|
||||
&& strings.retains(content)
|
||||
{
|
||||
owners[1] = Some(strings.retention());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user