Skip to content

refactor!: move head to ObjectStoreExt#543

Merged
crepererum merged 1 commit into
apache:mainfrom
crepererum:crepererum/os-ext-head
Nov 19, 2025
Merged

refactor!: move head to ObjectStoreExt#543
crepererum merged 1 commit into
apache:mainfrom
crepererum:crepererum/os-ext-head

Conversation

@crepererum

@crepererum crepererum commented Nov 10, 2025

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

head is just get_opts + with_head(true).

What changes are included in this PR?

  1. move method to extension trait
  2. remove no-longer-required implementations

Are there any user-facing changes?

Breaking: head moved from ObjectStore to ObjectStoreExt.

@crepererum crepererum marked this pull request as ready for review November 10, 2025 11:58

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @crepererum

Comment thread src/lib.rs
}

async fn head(&self, location: &Path) -> Result<ObjectMeta> {
let options = GetOptions::new().with_head(true);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL that GetOpts already has with_head 🤯

The more I see of these PRs to extract code into ObjectStoreExt the better I like it

@crepererum crepererum merged commit bb9021c into apache:main Nov 19, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants