mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-31 07:37:24 +00:00
Auto-fixed clippy::needless_lifetimes
`__CARGO_FIX_YOLO=1` is a hack, but it does help a lot with the tedious fixes where the result is fairly clear. See https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes ``` __CARGO_FIX_YOLO=1 cargo clippy --fix --all-targets --workspace --exclude gstreamer-player --exclude i-slint-backend-linuxkms --exclude uefi-demo --exclude ffmpeg -- -A clippy::all -W clippy::needless_lifetimes cargo fmt --all ```
This commit is contained in:
parent
0a7d7907b3
commit
9621cae218
16 changed files with 32 additions and 34 deletions
|
@ -22,14 +22,14 @@ impl ToPyObject for PyValue {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> IntoPy<PyObject> for PyValueRef<'a> {
|
||||
impl IntoPy<PyObject> for PyValueRef<'_> {
|
||||
fn into_py(self, py: Python<'_>) -> PyObject {
|
||||
// Share the conversion code below that operates on the reference
|
||||
self.to_object(py).into_py(py)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> ToPyObject for PyValueRef<'a> {
|
||||
impl ToPyObject for PyValueRef<'_> {
|
||||
fn to_object(&self, py: Python<'_>) -> PyObject {
|
||||
match &self.0 {
|
||||
slint_interpreter::Value::Void => ().into_py(py),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue