You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is backward-incompatible because of type deductions that could now fail.
FromArgs::redact_arg_values should also be updated if this is done.
Why ?
Current when getting arguments from std::env::args_os(), several collects and transformations are necessary to go from Iterator<Item = OsStr> to &[&str], which is a little sad.
OsStr to String (to_string_lossy, to_string + unwrap)
Collect to a vec of String
Iter, as_str
Collect to a vec of &str
With the change proposed in this issue, steps 3 and 4 would become unnecessary
The text was updated successfully, but these errors were encountered:
Current the function is defined as:
This could be changed to:
I think this is backward-incompatible because of type deductions that could now fail.
FromArgs::redact_arg_values
should also be updated if this is done.Why ?
Current when getting arguments from
std::env::args_os()
, severalcollect
s and transformations are necessary to go fromIterator<Item = OsStr>
to&[&str]
, which is a little sad.OsStr
toString
(to_string_lossy
,to_string + unwrap
)String
as_str
&str
With the change proposed in this issue, steps 3 and 4 would become unnecessary
The text was updated successfully, but these errors were encountered: