Skip to content

Refactor Context::with_context into Context::to_borrowed #2591

Open
@analogrelay

Description

@analogrelay

We have Context::with_context<'b>(other: &Context<'a>) -> Context<'b> that allows you to "reborrow" a Context<'a> into some smaller lifetime Context<'b>. However, in #2577 we identified that it feels cleaner to call this as a method instead of a constructor. This issue tracks refactoring it into a method: Context<'a>::to_borrowed<'b>(&self) -> Context<'b>

Metadata

Metadata

Assignees

Labels

Azure.CoreThe azure_core crateClientThis issue points to a problem in the data-plane of the library.design-discussionAn area of design currently under discussion and open to team and community feedback.

Type

No type

Projects

Status

Untriaged

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions