fix(host): appease clippy type_complexity on TritonTransport::service (CI -D warnings)
ci / web (push) Successful in 53s
ci / docs-site (push) Successful in 55s
docker / build-push (--build-arg FEDORA_VERSION=44, ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora44-rpm) (push) Successful in 8s
decky / build-publish (push) Successful in 18s
docker / build-push (., web/Dockerfile, punktfunk-web) (push) Successful in 9s
docker / build-push (ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora-rpm) (push) Successful in 9s
docker / build-push (ci, ci/rust-ci.Dockerfile, punktfunk-rust-ci) (push) Successful in 9s
docker / build-push (docs-site, docs-site/Dockerfile, punktfunk-docs) (push) Successful in 8s
ci / bench (push) Successful in 6m5s
docker / deploy-docs (push) Successful in 24s
android / android (push) Has been cancelled
apple / swift (push) Has been cancelled
apple / screenshots (push) Has been cancelled
arch / build-publish (push) Has been cancelled
ci / rust (push) Has been cancelled
deb / build-publish (push) Has been cancelled
rpm / build-publish (43, bazzite, punktfunk-fedora-rpm) (push) Has been cancelled
rpm / build-publish (44, fedora-44, punktfunk-fedora44-rpm) (push) Has been cancelled
windows-host / package (push) Has been cancelled
ci / web (push) Successful in 53s
ci / docs-site (push) Successful in 55s
docker / build-push (--build-arg FEDORA_VERSION=44, ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora44-rpm) (push) Successful in 8s
decky / build-publish (push) Successful in 18s
docker / build-push (., web/Dockerfile, punktfunk-web) (push) Successful in 9s
docker / build-push (ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora-rpm) (push) Successful in 9s
docker / build-push (ci, ci/rust-ci.Dockerfile, punktfunk-rust-ci) (push) Successful in 9s
docker / build-push (docs-site, docs-site/Dockerfile, punktfunk-docs) (push) Successful in 8s
ci / bench (push) Successful in 6m5s
docker / deploy-docs (push) Successful in 24s
android / android (push) Has been cancelled
apple / swift (push) Has been cancelled
apple / screenshots (push) Has been cancelled
arch / build-publish (push) Has been cancelled
ci / rust (push) Has been cancelled
deb / build-publish (push) Has been cancelled
rpm / build-publish (43, bazzite, punktfunk-fedora-rpm) (push) Has been cancelled
rpm / build-publish (44, fedora-44, punktfunk-fedora44-rpm) (push) Has been cancelled
windows-host / package (push) Has been cancelled
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -238,6 +238,10 @@ pub enum TritonTransport {
|
|||||||
Uhid(TritonPad),
|
Uhid(TritonPad),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// One transport `service()` pass: Steam's latest rumble `(left, right)` plus the raw
|
||||||
|
/// `(kind, payload)` reports it wrote since the last pass.
|
||||||
|
type TritonServiced = (Option<(u16, u16)>, Vec<(u8, Vec<u8>)>);
|
||||||
|
|
||||||
impl TritonTransport {
|
impl TritonTransport {
|
||||||
fn write_state(&mut self, st: &TritonState) {
|
fn write_state(&mut self, st: &TritonState) {
|
||||||
match self {
|
match self {
|
||||||
@@ -249,7 +253,7 @@ impl TritonTransport {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// `(rumble, raw reports)` Steam wrote since the last pass.
|
/// `(rumble, raw reports)` Steam wrote since the last pass.
|
||||||
fn service(&mut self) -> (Option<(u16, u16)>, Vec<(u8, Vec<u8>)>) {
|
fn service(&mut self) -> TritonServiced {
|
||||||
match self {
|
match self {
|
||||||
TritonTransport::Usbip(u) => {
|
TritonTransport::Usbip(u) => {
|
||||||
let fb = u.service();
|
let fb = u.service();
|
||||||
|
|||||||
Reference in New Issue
Block a user