Remove ReadOnlySignal (#4552)
* Remove ReadOnlySignal * Add back ReadOnlySignal as deprecated
This commit is contained in:
1 parent
0a04a199a4
commit
525c00ddac
6 files changed
+17
-14
No files matched your search
@@ -509,7 +509,7 @@ fn type_from_inside_option(ty: &Type) -> Option<&Type> {
|
||||
|
||||
// If the segment is a supported optional type, provide the inner type.
|
||||
// Return the inner type if the pattern is `Option<T>` or `ReadSignal<Option<T>>``
|
||||
if seg.ident == "ReadOnlySignal" || seg.ident == "ReadSignal" {
|
||||
if seg.ident == "ReadSignal" || seg.ident == "ReadOnlySignal" {
|
||||
// Get the inner type. E.g. the `u16` in `ReadSignal<u16>` or `Option` in `ReadSignal<Option<bool>>`
|
||||
let inner_type = extract_inner_type_from_segment(seg)?;
|
||||
let Type::Path(inner_path) = inner_type else {
|
||||
|
||||
Reference in new issue
Block a user