Skip to content

Commit

Permalink
[ffigen] Bump dart_style to 3.0 (dart-lang#1940)
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Lesches authored Jan 24, 2025
1 parent 60890ee commit 6456d48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pkgs/ffigen/lib/src/code_generator/library.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ class Library {
if (!file.existsSync()) file.createSync(recursive: true);
var bindings = generate();
if (format) {
final formatter =
DartFormatter(languageVersion: DartFormatter.latestLanguageVersion);
final formatter = DartFormatter(
languageVersion: DartFormatter.latestShortStyleLanguageVersion,
);
bindings = formatter.format(bindings);
}
file.writeAsStringSync(bindings);
Expand Down
2 changes: 1 addition & 1 deletion pkgs/ffigen/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies:
args: ^2.6.0
cli_util: ^0.4.2
collection: ^1.18.0
dart_style: ^2.3.7
dart_style: ^3.0.0
ffi: ^2.0.1
file: ^7.0.0
glob: ^2.0.0
Expand Down

0 comments on commit 6456d48

Please sign in to comment.