mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 23:37:32 +00:00
Fix beta errors
This commit is contained in:
parent
9ef18519b1
commit
e7b19aea58
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ impl<'a> ArgStr<'a> {
|
|||
(self.to_borrowed(), Self(Cow::Borrowed(&[])))
|
||||
}
|
||||
|
||||
pub(crate) fn trim_start_matches(&self, byte: u8) -> ArgStr<'_> {
|
||||
pub(crate) fn trim_start_matches(&'a self, byte: u8) -> ArgStr<'_> {
|
||||
assert!(byte.is_ascii());
|
||||
|
||||
let mut found = false;
|
||||
|
@ -83,7 +83,7 @@ impl<'a> ArgStr<'a> {
|
|||
self.split_at_unchecked(i).1
|
||||
}
|
||||
|
||||
pub(crate) fn split_at_unchecked(&self, i: usize) -> (ArgStr<'_>, ArgStr<'_>) {
|
||||
pub(crate) fn split_at_unchecked(&'a self, i: usize) -> (ArgStr<'_>, ArgStr<'_>) {
|
||||
(
|
||||
Self(Cow::Borrowed(&self.0[..i])),
|
||||
Self(Cow::Borrowed(&self.0[i..])),
|
||||
|
|
Loading…
Add table
Reference in a new issue