correct typo: Enviroment -> Environment (#100)
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
This commit is contained in:
parent
138d6e8a32
commit
20a6e18922
|
@ -86,7 +86,7 @@ pub enum Error {
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub enum ParseError {
|
pub enum ParseError {
|
||||||
EnviromentUnsupported,
|
EnvironmentUnsupported,
|
||||||
NotANumber,
|
NotANumber,
|
||||||
HostIsNotAnIpAddress,
|
HostIsNotAnIpAddress,
|
||||||
NotUnicode,
|
NotUnicode,
|
||||||
|
@ -312,7 +312,7 @@ impl Strings for TestEnv {
|
||||||
fn parse_environment(s: &str) -> Result<Environment, ParseError> {
|
fn parse_environment(s: &str) -> Result<Environment, ParseError> {
|
||||||
match s {
|
match s {
|
||||||
"Kubernetes" => Ok(Environment::Kubernetes),
|
"Kubernetes" => Ok(Environment::Kubernetes),
|
||||||
_ => Err(ParseError::EnviromentUnsupported),
|
_ => Err(ParseError::EnvironmentUnsupported),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue