pub fn as_owned(&self) -> Locator<'static> {
        let Locator { ident, reference } = self;
        let ident = ident.to_owned();
        let reference = Cow::Owned(reference.to_string());
        Locator { ident, reference }
    }
Converts a possibly borrowed Locator to one that must be owned
crates/turborepo-lockfiles/src/berry/identifiers.rs