Skip to content

Commit

Permalink
[Fix] fix wangyi album save missing musics and music artpic
Browse files Browse the repository at this point in the history
  • Loading branch information
canxin121 committed Jul 12, 2024
1 parent 8796de4 commit 02752aa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
3 changes: 3 additions & 0 deletions lib/src/rust/api/bind/type_bind.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ abstract class MusicAggregatorW implements RustOpaqueInterface {

Future<void> setDefaultSource({required String source});

@override
String toString();
}

Expand All @@ -60,6 +61,7 @@ abstract class MusicListW implements RustOpaqueInterface {

String source();

@override
String toString();
}

Expand All @@ -78,5 +80,6 @@ abstract class MusicW implements RustOpaqueInterface {

String source();

@override
String toString();
}
18 changes: 9 additions & 9 deletions lib/src/rust/frb_generated.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2483,9 +2483,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
AggregatorOnlineFactoryW dco_decode_aggregator_online_factory_w(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
final arr = raw as List<dynamic>;
if (arr.length != 0)
if (arr.isNotEmpty)
throw Exception('unexpected arr length: expect 0 but see ${arr.length}');
return AggregatorOnlineFactoryW();
return const AggregatorOnlineFactoryW();
}

@protected
Expand Down Expand Up @@ -2805,9 +2805,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
OnlineFactoryW dco_decode_online_factory_w(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
final arr = raw as List<dynamic>;
if (arr.length != 0)
if (arr.isNotEmpty)
throw Exception('unexpected arr length: expect 0 but see ${arr.length}');
return OnlineFactoryW();
return const OnlineFactoryW();
}

@protected
Expand Down Expand Up @@ -2960,9 +2960,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
SqlFactoryW dco_decode_sql_factory_w(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
final arr = raw as List<dynamic>;
if (arr.length != 0)
if (arr.isNotEmpty)
throw Exception('unexpected arr length: expect 0 but see ${arr.length}');
return SqlFactoryW();
return const SqlFactoryW();
}

@protected
Expand Down Expand Up @@ -3118,7 +3118,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
AggregatorOnlineFactoryW sse_decode_aggregator_online_factory_w(
SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
return AggregatorOnlineFactoryW();
return const AggregatorOnlineFactoryW();
}

@protected
Expand Down Expand Up @@ -3524,7 +3524,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected
OnlineFactoryW sse_decode_online_factory_w(SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
return OnlineFactoryW();
return const OnlineFactoryW();
}

@protected
Expand Down Expand Up @@ -3727,7 +3727,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected
SqlFactoryW sse_decode_sql_factory_w(SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
return SqlFactoryW();
return const SqlFactoryW();
}

@protected
Expand Down
2 changes: 1 addition & 1 deletion rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 02752aa

Please sign in to comment.