Remove unused parse_pathbuf_push
function
This also remove the `allow(dead_code)`.
This commit is contained in:
parent
a88a94e8aa
commit
5cf4499181
1 changed files with 0 additions and 12 deletions
|
@ -313,7 +313,6 @@ mod desc {
|
||||||
pub const parse_opt_string: &str = parse_string;
|
pub const parse_opt_string: &str = parse_string;
|
||||||
pub const parse_string_push: &str = parse_string;
|
pub const parse_string_push: &str = parse_string;
|
||||||
pub const parse_opt_pathbuf: &str = "a path";
|
pub const parse_opt_pathbuf: &str = "a path";
|
||||||
pub const parse_pathbuf_push: &str = parse_opt_pathbuf;
|
|
||||||
pub const parse_list: &str = "a space-separated list of strings";
|
pub const parse_list: &str = "a space-separated list of strings";
|
||||||
pub const parse_opt_comma_list: &str = "a comma-separated list of strings";
|
pub const parse_opt_comma_list: &str = "a comma-separated list of strings";
|
||||||
pub const parse_number: &str = "a number";
|
pub const parse_number: &str = "a number";
|
||||||
|
@ -354,7 +353,6 @@ mod desc {
|
||||||
"one of supported split-debuginfo modes (`off` or `dsymutil`)";
|
"one of supported split-debuginfo modes (`off` or `dsymutil`)";
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
|
||||||
mod parse {
|
mod parse {
|
||||||
crate use super::*;
|
crate use super::*;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
@ -445,16 +443,6 @@ mod parse {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
crate fn parse_pathbuf_push(slot: &mut Vec<PathBuf>, v: Option<&str>) -> bool {
|
|
||||||
match v {
|
|
||||||
Some(s) => {
|
|
||||||
slot.push(PathBuf::from(s));
|
|
||||||
true
|
|
||||||
}
|
|
||||||
None => false,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
crate fn parse_list(slot: &mut Vec<String>, v: Option<&str>) -> bool {
|
crate fn parse_list(slot: &mut Vec<String>, v: Option<&str>) -> bool {
|
||||||
match v {
|
match v {
|
||||||
Some(s) => {
|
Some(s) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue