File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ use std::path::PathBuf;
15
15
use std:: str:: FromStr ;
16
16
use url:: Url ;
17
17
18
- // Silence "variant is never constructed: `Ssm`"; there appears to be a bug in this linter?
19
- #[ allow( dead_code) ]
20
18
#[ derive( Debug ) ]
21
19
pub ( crate ) enum KeySource {
22
20
Local ( PathBuf ) ,
@@ -80,9 +78,9 @@ impl FromStr for KeySource {
80
78
. context ( error:: UrlParse { url : s } ) ?;
81
79
82
80
match url. scheme ( ) {
83
- "file" => Ok ( Self :: Local ( PathBuf :: from ( url. path ( ) ) ) ) ,
81
+ "file" => Ok ( KeySource :: Local ( PathBuf :: from ( url. path ( ) ) ) ) ,
84
82
#[ cfg( any( feature = "rusoto-native-tls" , feature = "rusoto-rustls" ) ) ]
85
- "aws-ssm" => Ok ( Self :: Ssm {
83
+ "aws-ssm" => Ok ( KeySource :: Ssm {
86
84
profile : url. host_str ( ) . and_then ( |s| {
87
85
if s. is_empty ( ) {
88
86
None
You can’t perform that action at this time.
0 commit comments