Skip to content

Commit c4c67b6

Browse files
committed
everything: Formated code.
1 parent b040dd0 commit c4c67b6

File tree

9 files changed

+7
-13
lines changed

9 files changed

+7
-13
lines changed

src/karm-font/ttf/fontface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export struct Fontface : Gfx::Fontface {
2828

2929
Fontface(Sys::Mmap&& mmap, Parser parser)
3030
: _mmap(std::move(mmap)),
31-
_parser(std::move(parser)) {
31+
_parser(std::move(parser)) {
3232
_unitPerEm = _parser.unitPerEm();
3333
}
3434

src/karm-font/ttf/glyf.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ module;
44

55
export module Karm.Font.Ttf:glyf;
66

7-
87
import Karm.Core;
98
import Karm.Gfx;
109
import Karm.Math;

src/karm-fs/bootfs.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ import :vfs;
1111

1212
namespace Karm::Fs {
1313

14-
export Async::Task<Rc<Node>> mountBootfsAsync(Rc<Sys::Fd> fd)
15-
{
14+
export Async::Task<Rc<Node>> mountBootfsAsync(Rc<Sys::Fd> fd) {
1615
auto fsRoot = co_trya$(createAsync<VDir>());
1716
auto fsMmap = co_try$(Sys::mmap(fd));
1817

src/karm-icc/tests/test-icc.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,4 @@ test$("karm-icc-device-dependent") {
3131
return Ok();
3232
}
3333

34-
3534
} // namespace Karm::Icc::Tests

src/karm-kira/dialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ export Ui::Child dialogFooter(Ui::Children children) {
7676
export Ui::Child dialogAction(Opt<Ui::Send<>> onPress, String text) {
7777
return Ui::button(
7878
[onPress = std::move(onPress)](auto& n) {
79-
onPress(n);
80-
Ui::closeDialog(n);
79+
onPress(n);
80+
Ui::closeDialog(n);
8181
},
8282
Ui::ButtonStyle::primary(),
8383
text

src/karm-ref/tests/test-uuid.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ test$("karm-ref-uuid-v1") {
3636
}
3737

3838
test$("karm-ref-uuid-bytes") {
39-
Array<u8, 16> uuidByteArray = {0x5f,0xb3,0x61,0x0d,0x8c,0xea,0x4f,0xec,0x86,0x4e,0x58,0xe9,0xf9,0xc9,0x81,0x4d};
39+
Array<u8, 16> uuidByteArray = {0x5f, 0xb3, 0x61, 0x0d, 0x8c, 0xea, 0x4f, 0xec, 0x86, 0x4e, 0x58, 0xe9, 0xf9, 0xc9, 0x81, 0x4d};
4040
auto uuid = "5fb3610d-8cea-4fec-864e-58e9f9c9814d"_uuid;
4141
expectEq$(uuid.bytes(), bytes(uuidByteArray));
4242
expectEq$(uuid.version(), 4);
@@ -45,7 +45,7 @@ test$("karm-ref-uuid-bytes") {
4545
}
4646

4747
test$("karm-ref-guid-bytes") {
48-
Array<u8, 16> guidByteArray = {0x0d,0x61,0xb3,0x5f,0xea,0x8c,0xec,0x4f,0x86,0x4e,0x58,0xe9,0xf9,0xc9,0x81,0x4d};
48+
Array<u8, 16> guidByteArray = {0x0d, 0x61, 0xb3, 0x5f, 0xea, 0x8c, 0xec, 0x4f, 0x86, 0x4e, 0x58, 0xe9, 0xf9, 0xc9, 0x81, 0x4d};
4949
auto guid = "5fb3610d-8cea-4fec-864e-58e9f9c9814d"_guid;
5050
expectEq$(guid.bytes(), bytes(guidByteArray));
5151
expectEq$(guid.version(), 4);

src/karm-sys/pipe.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ export struct Pipe {
2323
};
2424

2525
} // namespace Karm::Sys
26-

src/karm-sys/posix/sys.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ import Karm.Sys.Posix;
3030

3131
namespace Karm::Sys::_Embed {
3232

33-
34-
3533
// MARK: Fd --------------------------------------------------------------------
3634

3735
Res<Rc<Sys::Fd>> deserializeFd(Serde::Deserializer&) {

src/karm-sys/tests/test-async-cancellation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ testAsync$("async-cancellation") {
1717
bool finished = false;
1818
Async::Cancellation sleepCancel;
1919
co_try$(sleepCancel.attach(ct));
20-
Async::detach(bigSleptAsync(pass, sleepCancel.token()), [&] (auto&) {
20+
Async::detach(bigSleptAsync(pass, sleepCancel.token()), [&](auto&) {
2121
finished = true;
2222
});
2323
sleepCancel.cancel();

0 commit comments

Comments
 (0)