Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

impl<'a> From<&'a BString> for Cow<'a, BStr> #187

Merged
merged 1 commit into from
Jul 25, 2024

Commits on Jul 25, 2024

  1. impl<'a> From<&'a BString> for Cow<'a, BStr>

    This commit simplifies code in situations like:
    
    ```
    let mut v = Vec::<Cow<'a, BStr>>::new();
    let s = BString::new(...);
    
    // Before this commit, we would have to do:
    // v.push(s.as_bstr().into());
    v.push(s.into());
    ```
    wbenny authored Jul 25, 2024
    Configuration menu
    Copy the full SHA
    eec096a View commit details
    Browse the repository at this point in the history