diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d7f370..43955eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ v0.3.0 (in development) ----------------------- +- Changed the receiver of `InPlace::open()` from `&mut self` to `&self` v0.2.0 (2023-12-22) ------------------- diff --git a/src/lib.rs b/src/lib.rs index 205ffcd..a17cb35 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -162,7 +162,7 @@ impl InPlace { /// /// See the documentation for the variants of [`InPlaceErrorKind`] for the /// operations & checks that this method can fail on. - pub fn open(&mut self) -> Result { + pub fn open(&self) -> Result { let path = if self.follow_symlinks { self.path .canonicalize()