Skip to content

Commit 592ad7b

Browse files
feat(logs): adding extra logs
1 parent 8ed4fcb commit 592ad7b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

agent-control/src/opamp/remote_config/signature.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ impl TryFrom<&str> for SigningAlgorithm {
5555
ECDSA_P384_SHA256 => Ok(Self::ECDSA_P384_SHA256),
5656
ECDSA_P384_SHA384 => Ok(Self::ECDSA_P384_SHA384),
5757
ED25519 => Ok(Self::ED25519),
58-
unsupported_algorithm => Err(SignatureError::UnsupportedAlgorithm(
59-
unsupported_algorithm.to_string(),
60-
)),
58+
_unsupported_algorithm => Err(SignatureError::UnsupportedAlgorithm(s.to_string())),
6159
}
6260
}
6361
}

0 commit comments

Comments
 (0)