We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fff4702 commit c17d9c4Copy full SHA for c17d9c4
tuftool/src/source.rs
@@ -15,8 +15,6 @@ use std::path::PathBuf;
15
use std::str::FromStr;
16
use url::Url;
17
18
-// Silence "variant is never constructed: `Ssm`"; there appears to be a bug in this linter?
19
-#[allow(dead_code)]
20
#[derive(Debug)]
21
pub(crate) enum KeySource {
22
Local(PathBuf),
@@ -80,9 +78,9 @@ impl FromStr for KeySource {
80
78
.context(error::UrlParse { url: s })?;
81
79
82
match url.scheme() {
83
- "file" => Ok(Self::Local(PathBuf::from(url.path()))),
+ "file" => Ok(KeySource::Local(PathBuf::from(url.path()))),
84
#[cfg(any(feature = "rusoto-native-tls", feature = "rusoto-rustls"))]
85
- "aws-ssm" => Ok(Self::Ssm {
+ "aws-ssm" => Ok(KeySource::Ssm {
86
profile: url.host_str().and_then(|s| {
87
if s.is_empty() {
88
None
0 commit comments