Skip to content

Commit d6aecc1

Browse files
davidhewittIcxolu
andcommitted
Apply suggestions from code review
Co-authored-by: Icxolu <[email protected]>
1 parent d54b631 commit d6aecc1

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

guide/src/free-threading.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,6 @@ interpreter.
409409
[`Once`]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html
410410
[`Once::call_once`]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#method.call_once
411411
[`Once::call_once_force`]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#method.call_once_force
412-
[`OnceCell`]: https://docs.rs/once_cell/latest/once_cell/sync/struct.OnceCell.html
413-
[`OnceCellExt`]: {{#PYO3_DOCS_URL}}/pyo3/sync/trait.OnceCellExt.html
414412
[`OnceExt`]: {{#PYO3_DOCS_URL}}/pyo3/sync/trait.OnceExt.html
415413
[`OnceExt::call_once_py_attached`]: {{#PYO3_DOCS_URL}}/pyo3/sync/trait.OnceExt.html#tymethod.call_once_py_attached
416414
[`OnceExt::call_once_force_py_attached`]: {{#PYO3_DOCS_URL}}/pyo3/sync/trait.OnceExt.html#tymethod.call_once_force_py_attached

src/impl_/exceptions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl ImportedExceptionTypeObject {
1818
pub fn get<'py>(&self, py: Python<'py>) -> &Bound<'py, PyType> {
1919
self.imported_value
2020
.import(py, self.module, self.name)
21-
.unwrap_or_else(|e: PyErr| {
21+
.unwrap_or_else(|e| {
2222
panic!(
2323
"failed to import exception {}.{}: {}",
2424
self.module, self.name, e

src/sync/once_lock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl<T> PyOnceLock<T> {
4747
}
4848
}
4949

50-
/// Get a reference to the contained value, or `None` if hte cell has not yet been written.
50+
/// Get a reference to the contained value, or `None` if the cell has not yet been written.
5151
#[inline]
5252
pub fn get(&self, _py: Python<'_>) -> Option<&T> {
5353
self.inner.get()

src/types/module.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ impl PyModule {
8080
/// ```
8181
///
8282
/// If you want to import a class, you can store a reference to it with
83-
/// [`PyOnceLock::import`][crate::sync::PyOnceLock#method.import].
83+
/// [`PyOnceLock::import`][crate::sync::PyOnceLock::import].
8484
pub fn import<'py, N>(py: Python<'py>, name: N) -> PyResult<Bound<'py, PyModule>>
8585
where
8686
N: IntoPyObject<'py, Target = PyString>,

0 commit comments

Comments
 (0)