Skip to content

Commit b198320

Browse files
Merge pull request #1002 from omertuc/warningss
Fix warnings
2 parents 28c3090 + f4693fa commit b198320

File tree

134 files changed

+3778
-8120
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+3778
-8120
lines changed

Cargo.lock

Lines changed: 12 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ base64 = "0.21.0"
1919
pem = "3.0.2"
2020
x509-certificate = "0.21.0"
2121
lazy_static = "1.4.0"
22-
rsa = "0.9.0"
22+
rsa = "0.9.10"
2323
pkcs1 = "0.7.5"
2424
bytes = "1.4.0"
2525
etcd-client = { version = "0.12.1" }

build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ fn main() -> Result<()> {
1212
fn generate_protobuf_code() -> Result<()> {
1313
let mut prost_build = prost_build::Config::new();
1414

15+
prost_build.type_attribute(".", "#[allow(dead_code)]");
16+
1517
prost_build.type_attribute(".", "#[derive(serde::Serialize, serde::Deserialize)]");
1618
prost_build.type_attribute(".", "#[serde(rename_all = \"camelCase\")]");
1719

src/cluster_crypto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ fn collect_all_pairs_in_tree(pair: &Rc<RefCell<CertKeyPair>>, out: &mut HashSet<
724724
let signees = { pair.borrow().signees.clone() };
725725
for signee in signees {
726726
if let signee::Signee::CertKeyPair(child) = &signee {
727-
collect_all_pairs_in_tree(&child, out, visited);
727+
collect_all_pairs_in_tree(child, out, visited);
728728
}
729729
}
730730
}

src/cluster_crypto/crypto_objects.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ use std::{
1616
};
1717
use x509_certificate::InMemorySigningKeyPair;
1818

19+
#[allow(clippy::large_enum_variant)]
1920
pub(crate) enum CryptoObject {
2021
PrivateKey(PrivateKey, PublicKey),
2122
PublicKey(PublicKey),

src/cluster_crypto/json_crawl.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ fn process_data_url_value(value: &Value) -> Result<Option<String>> {
289289
let url = data_url::DataUrl::process(string_value).ok().context("dataurl failed processing")?;
290290

291291
let (decoded, _fragment) = url.decode_to_vec().ok().context("non-unicode dataurl")?;
292+
293+
#[allow(clippy::manual_ok_err)]
292294
if let Ok(decoded) = String::from_utf8(decoded) {
293295
Some(decoded)
294296
} else {

src/ocp_postprocess/ip_rename/etcd_rename.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ fn fix_storage_config(config: &mut Value, original_ip: &str, ip: &str) -> Result
126126
let expected_url = format!("https://{original_ip_formatted}:2379");
127127

128128
// Only replace if the original IP is found in the URLs
129-
let contains_original = current_urls.iter().any(|url| url.as_str().map_or(false, |s| s == expected_url));
129+
let contains_original = current_urls.iter().any(|url| url.as_str().is_some_and(|s| s == expected_url));
130130

131131
if contains_original {
132132
let new_ip = if ip.contains(':') { format!("[{ip}]") } else { ip.to_string() };

src/protobuf_gen/github.com.openshift.api.oauth.v1.rs

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/protobuf_gen/github.com.openshift.api.route.v1.rs

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)