[ui][input-pipeline] remove unused `Clone` from LightSensorHandler

`LightSensorHandler::new()` returns an `Rc<Self>`. Hence:
- every instance of `LightSensorHandler` created by `new()`
  implements `Clone`, [by virtue of `Rc`](https://doc.rust-lang.org/std/rc/struct.Rc.html#impl-Clone-for-Rc%3CT%3E)
- there's no need for `LightSensorHandler` to implement
  `Clone` itself

The primary benefit of having `Clone` come from `Rc`, is that we
know that all references are functionally identical, without having
to look inside the definition of the `LightSensorHandler` struct to
verify that all of the mutable data is shared across instances.

A secondary benefit is that we can remove `Rc` from the fields of
the struct, and thereby reduce the number of places we might have
to look to find cycles in the object graph (if we run into memory
bloat).

Bug: None
Test: fx test input_pipeline_lib_tests
Change-Id: I944a7ef4bfb0f34c480a62341ba63ff88992a506
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/884200
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
Reviewed-by: Paul Faria <paulfaria@google.com>
Reviewed-by: Caroline Liu <carolineliu@google.com>
Fuchsia-Auto-Submit: Mukesh Agrawal <quiche@google.com>
1 file changed
tree: 35bad50f8604ac582c5560a69d49b16f3bd65bb2
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. infra/
  7. products/
  8. scripts/
  9. sdk/
  10. src/
  11. third_party/
  12. tools/
  13. zircon/
  14. .clang-format
  15. .clang-tidy
  16. .editorconfig
  17. .git-blame-ignore-revs
  18. .gitattributes
  19. .gitignore
  20. .gitmodules
  21. .gn
  22. .ignore
  23. .style.yapf
  24. analysis_options.yaml
  25. AUTHORS
  26. BUILD.gn
  27. CODE_OF_CONDUCT.md
  28. CONTRIBUTING.md
  29. fuchsia.code-workspace
  30. LICENSE
  31. OWNERS
  32. PATENTS
  33. pyrightconfig.json
  34. README.md
  35. rustfmt.toml
README.md

Fuchsia

What is Fuchsia?

Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.

We expect everyone interacting with our project to respect our code of conduct.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.