Commit ec964aa
committed
refactor: assert device downcasting in device manager
When we get a type erased device from a underlying
device storage we expect that it will always be of the type we
requested with T::const_device_type(). If it is not true, we
have an internal bug.
Signed-off-by: Egor Lazarchuk <[email protected]>1 parent a53e331 commit ec964aa
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | 90 | | |
93 | 91 | | |
94 | 92 | | |
| |||
385 | 383 | | |
386 | 384 | | |
387 | 385 | | |
388 | | - | |
| 386 | + | |
389 | 387 | | |
390 | 388 | | |
391 | 389 | | |
| |||
0 commit comments