output: pre-compute OutputId hash
This commit is contained in:
parent
9bd7e14b08
commit
6e9adc487e
8 changed files with 88 additions and 40 deletions
|
|
@ -154,12 +154,7 @@ impl TestBackend {
|
|||
});
|
||||
let default_monitor_info = MonitorInfo {
|
||||
modes: Some(vec![mode]),
|
||||
output_id: Rc::new(OutputId {
|
||||
connector: None,
|
||||
manufacturer: "jay".to_string(),
|
||||
model: "TestConnector".to_string(),
|
||||
serial_number: default_connector.id.to_string(),
|
||||
}),
|
||||
output_id: OutputId::new("", "jay", "TestConnector", default_connector.id.to_string()),
|
||||
width_mm: 80,
|
||||
height_mm: 60,
|
||||
non_desktop: false,
|
||||
|
|
|
|||
|
|
@ -54,12 +54,7 @@ async fn test(run: Rc<TestRun>) -> TestResult {
|
|||
});
|
||||
let new_monitor_info = MonitorInfo {
|
||||
modes: Some(vec![]),
|
||||
output_id: Rc::new(OutputId {
|
||||
connector: None,
|
||||
manufacturer: "jay".to_string(),
|
||||
model: "jay second connector".to_string(),
|
||||
serial_number: "".to_string(),
|
||||
}),
|
||||
output_id: OutputId::new("", "jay", "jay second connector", ""),
|
||||
width_mm: 0,
|
||||
height_mm: 0,
|
||||
non_desktop: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue