Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More clippy fixes #349

Merged
merged 10 commits into from
Jul 17, 2024
Merged

More clippy fixes #349

merged 10 commits into from
Jul 17, 2024

Conversation

dhilipsiva
Copy link
Contributor

No description provided.

- Added `rust-toolchain.toml` file with `channel` set to `"1.79.0"`
- Added `rustfmt` and `clippy` components
- Modified `run_media_server` function in [bin/src/server/media.rs]
- Updated `default_cluster_cert_buf` and `default_cluster_key_buf` variables in [bin/src/server/media.rs]
- Modified various blocks and lines within `run_media_server` function in [bin/src/server/media.rs]
- Made changes to the `test` function in [bin/src/server/media_core/src/endpoint/internal/local_track/packet_selector/video_vp9_svc.rs]
- Updated the `test_simple` function with additional test cases in [packages/media_utils/src/seq_rewrite.rs]
- Modified the `push` and `pop` functions in [packages/media_record/src/storage/mod.rs]
- Made changes to several functions within `internal.rs` file in [packages/media_core/src/endpoint/internal.rs]
- Updated bitrate allocation logic in [packages/media_core/src/endpoint/internal/bitrate_allocator/egress.rs]
- Made changes to logging and refactored code in [packages/media_record/src/media.rs]
- Modified the `push_opus` and `push_vpx` methods in [packages/media_record/src/media/vpx_writer.rs]
- Updated the `new` and `push` functions in [packages/media_record/src/raw_record/chunk_writer.rs]
- Made modifications to various functions within `video_h264_sim.rs` in [packages/media_core/src/endpoint/internal/local_track/packet_selector/video_h264_sim.rs]
- Modified the test functions in [packages/media_core/src/endpoint/internal/local_track/packet_selector/video_vp8_sim.rs]
* master:
  feat: Refactor media server and track selection logic
  chore: update docs installation (8xFF#343)
  fixed: build release with github action (8xFF#340)
  Fix: github action failed to build release with c++ deps (8xFF#339)
  fixed: update atm0s-sdn for fix media-node failed to register gateway after restart caused by broadcast register message was rejected by history cache logic (8xFF#337)
  feat: media record  (8xFF#329)
  fixed: build warnings and clippy warnings (8xFF#328)
Copy link

codecov bot commented Jul 16, 2024

Codecov Report

Attention: Patch coverage is 23.33333% with 23 lines in your changes missing coverage. Please review.

Project coverage is 41.83%. Comparing base (13b267e) to head (d1af18a).

Files Patch % Lines
packages/media_record/src/storage/mod.rs 0.00% 10 Missing ⚠️
packages/media_record/src/media.rs 0.00% 6 Missing ⚠️
bin/src/server/media.rs 0.00% 2 Missing ⚠️
packages/media_record/src/media/vpx_writer.rs 0.00% 2 Missing ⚠️
...ckages/media_record/src/raw_record/chunk_writer.rs 0.00% 2 Missing ⚠️
packages/media_core/src/endpoint/internal.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #349      +/-   ##
==========================================
- Coverage   41.84%   41.83%   -0.01%     
==========================================
  Files         134      134              
  Lines       14046    14048       +2     
==========================================
  Hits         5877     5877              
- Misses       8169     8171       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dhilipsiva dhilipsiva changed the title [WIP] More clippy fixes More clippy fixes Jul 16, 2024
- Add comment explaining the use of `clippy::map_entry` in [packages/media_record/src/media.rs]
- Include link to open issue on Rust Clippy GitHub repo in the comment
Copy link
Contributor

@giangndm giangndm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dhilipsiva Looks good for me. I will merge it now.

@giangndm giangndm merged commit bfdcfc3 into 8xFF:master Jul 17, 2024
8 of 10 checks passed
@giangndm
Copy link
Contributor

@dhilipsiva for avoiding clippy warns, can you add a github action for running it every pull request?

@dhilipsiva dhilipsiva deleted the fix-warnings branch July 18, 2024 04:00
giangndm pushed a commit to giangndm/8xFF-decentralized-media-server that referenced this pull request Nov 26, 2024
* fix build warnings

* refactor: fix clippy warnings

* build: Set default Rust version and add code formatting tools

- Added `rust-toolchain.toml` file with `channel` set to `"1.79.0"`
- Added `rustfmt` and `clippy` components

* chore: add a TODO comment.

* chore: removed a comment that was confirmed.

* refactor: #[allow(clippy::large_enum_variant)]

* feat: Refactor media server and track selection logic

- Modified `run_media_server` function in [bin/src/server/media.rs]
- Updated `default_cluster_cert_buf` and `default_cluster_key_buf` variables in [bin/src/server/media.rs]
- Modified various blocks and lines within `run_media_server` function in [bin/src/server/media.rs]
- Made changes to the `test` function in [bin/src/server/media_core/src/endpoint/internal/local_track/packet_selector/video_vp9_svc.rs]
- Updated the `test_simple` function with additional test cases in [packages/media_utils/src/seq_rewrite.rs]
- Modified the `push` and `pop` functions in [packages/media_record/src/storage/mod.rs]
- Made changes to several functions within `internal.rs` file in [packages/media_core/src/endpoint/internal.rs]
- Updated bitrate allocation logic in [packages/media_core/src/endpoint/internal/bitrate_allocator/egress.rs]
- Made changes to logging and refactored code in [packages/media_record/src/media.rs]
- Modified the `push_opus` and `push_vpx` methods in [packages/media_record/src/media/vpx_writer.rs]
- Updated the `new` and `push` functions in [packages/media_record/src/raw_record/chunk_writer.rs]
- Made modifications to various functions within `video_h264_sim.rs` in [packages/media_core/src/endpoint/internal/local_track/packet_selector/video_h264_sim.rs]
- Modified the test functions in [packages/media_core/src/endpoint/internal/local_track/packet_selector/video_vp8_sim.rs]

* fix: error[yanked]: detected yanked crate (try `cargo update -p bytes`)

* docs: Improve code documentation and clippy usage in media module

- Add comment explaining the use of `clippy::map_entry` in [packages/media_record/src/media.rs]
- Include link to open issue on Rust Clippy GitHub repo in the comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants