camera-directshow: remove a .expect() and fix clippy warning#854
camera-directshow: remove a .expect() and fix clippy warning#854Brendonovich merged 1 commit intomainfrom
Conversation
WalkthroughThe update modifies the Changes
Sequence Diagram(s)sequenceDiagram
participant App
participant VideoInputDeviceIterator
participant System (DirectShow)
App->>VideoInputDeviceIterator: new()
VideoInputDeviceIterator->>System (DirectShow): CreateClassEnumerator
alt Enumerator returned
System (DirectShow)-->>VideoInputDeviceIterator: IEnumMoniker
VideoInputDeviceIterator-->>App: Some(iterator)
else No enumerator (S_FALSE)
System (DirectShow)-->>VideoInputDeviceIterator: None
VideoInputDeviceIterator-->>App: None (warn)
end
App->>VideoInputDeviceIterator: next()
alt Enumerator present
VideoInputDeviceIterator->>System (DirectShow): Next()
System (DirectShow)-->>VideoInputDeviceIterator: Moniker or None
VideoInputDeviceIterator-->>App: Moniker or None
else Enumerator absent
VideoInputDeviceIterator-->>App: None
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (5)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
Bug Fixes
Chores