mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Remove dead Config::get_i64
method
This commit is contained in:
parent
a458cd82e2
commit
09d9165d27
@ -548,12 +548,6 @@ impl Config {
|
||||
}
|
||||
}
|
||||
|
||||
// Recommended to use `get` if you want a specific type, such as an unsigned value.
|
||||
// Example: `config.get::<Option<u32>>("some.key")?`.
|
||||
pub fn get_i64(&self, key: &str) -> CargoResult<OptValue<i64>> {
|
||||
self.get::<Option<Value<i64>>>(key)
|
||||
}
|
||||
|
||||
fn get_integer(&self, key: &ConfigKey) -> Result<OptValue<i64>, ConfigError> {
|
||||
match self.get_env::<i64>(key)? {
|
||||
Some(v) => Ok(Some(v)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user