forked from mirrors/jj
commit_builder: remove unneeded &mut from .write_hidden()
Since the backend::Commit has to be cloned, .write_hidden() doesn't mutate the self.commit object.
This commit is contained in:
parent
fa7f4e68c5
commit
d2f933eed3
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ impl DetachedCommitBuilder {
|
|||
///
|
||||
/// This does not consume the builder, so you can reuse the current
|
||||
/// configuration to create another commit later.
|
||||
pub fn write_hidden(&mut self) -> BackendResult<Commit> {
|
||||
pub fn write_hidden(&self) -> BackendResult<Commit> {
|
||||
write_to_store(&self.store, self.commit.clone(), &self.sign_settings)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue