Skip to content

Commit

Permalink
meta: Format source code.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepy-monax committed Dec 8, 2024
1 parent c86ea4d commit 68a8d7f
Show file tree
Hide file tree
Showing 21 changed files with 15 additions and 28 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion meta/plugins/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
python-magic ~= 0.4.27
git+https://github.com/cute-engineering/[email protected].9
git+https://github.com/cute-engineering/[email protected].10
2 changes: 1 addition & 1 deletion meta/plugins/start/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def generateSystem(img: image.Image) -> None:
img.install("hjert", "kernel-x86_64")
img.installAll("skift-x86_64")

img.cpTree("meta/image/opstart-uefi/boot", "boot")
img.cpTree("meta/image/efi/boot", "boot")


@cli.command("i", "image", "Generate the boot image")
Expand Down
6 changes: 0 additions & 6 deletions meta/release/nightly.md

This file was deleted.

6 changes: 0 additions & 6 deletions meta/release/stable.md

This file was deleted.

1 change: 1 addition & 0 deletions src/apps/hideo-demos/base.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <karm-ui/node.h>

#include <mdi/_prelude.h>

namespace Hideo::Demos {
Expand Down
1 change: 0 additions & 1 deletion src/apps/hideo-demos/demo-bezier.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <karm-ui/layout.h>
#include <karm-ui/reducer.h>
#include <karm-ui/view.h>

#include <mdi/vector-bezier.h>

#include "base.h"
Expand Down
1 change: 0 additions & 1 deletion src/apps/hideo-demos/demo-gradient.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#pragma once

#include <karm-ui/view.h>

#include <mdi/gradient-horizontal.h>

#include "base.h"
Expand Down
1 change: 0 additions & 1 deletion src/apps/hideo-demos/demo-stroke.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#pragma once

#include <karm-ui/view.h>

#include <mdi/vector-line.h>

#include "base.h"
Expand Down
1 change: 0 additions & 1 deletion src/apps/hideo-shell/lock.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <karm-ui/box.h>
#include <karm-ui/drag.h>

#include <mdi/chevron-up.h>

#include "app.h"
Expand Down
1 change: 1 addition & 0 deletions src/apps/hideo-zoo/model.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <karm-ui/reducer.h>

#include <mdi/_prelude.h>

namespace Hideo::Zoo {
Expand Down
2 changes: 1 addition & 1 deletion src/impls/impl-uring/async.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ struct UringSched : public Sys::Sched {
TimeStamp _until;
Async::Promise<> _promise;

struct __kernel_timespec _ts {};
struct __kernel_timespec _ts{};

Job(TimeStamp until)
: _until(until) {}
Expand Down
3 changes: 2 additions & 1 deletion src/libs/karm-base/iter.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ struct Iter {
}

constexpr auto collect() {
forEach([&](auto const&...) {});
forEach([&](auto const &...) {
});
}

template <typename C>
Expand Down
1 change: 1 addition & 0 deletions src/libs/karm-gfx/icon.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <karm-math/rect.h>

#include <mdi/_prelude.h>

#include "canvas.h"
Expand Down
2 changes: 0 additions & 2 deletions src/libs/karm-json/values.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,8 @@ Res<> stringify(Io::Emit &emit, Value const &v);

Res<String> stringify(Value const &v);


} // namespace Karm::Json


template <>
struct Karm::Io::Formatter<Karm::Json::Value> {
Res<usize> format(Io::TextWriter &writer, Karm::Json::Value value) {
Expand Down
2 changes: 1 addition & 1 deletion src/libs/karm-kira/navbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Ui::Child navbarItem(Ui::OnPress onPress, Mdi::Icon icon, Str text, bool selecte
Ui::empty(4),
Ui::labelSmall(text)
) |
Ui::insets({ 10, 8, 6, 8})
Ui::insets({10, 8, 6, 8})
) |
Ui::grow();
}
Expand Down
1 change: 1 addition & 0 deletions src/libs/karm-mime/mime.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <karm-io/emit.h>
#include <karm-io/expr.h>
#include <karm-io/sscan.h>

#include <mdi/_prelude.h>

namespace Karm::Mime {
Expand Down
2 changes: 1 addition & 1 deletion src/web/vaev-browser/app.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ namespace Vaev::Browser {

Ui::Child app(Mime::Url url, Res<Strong<Vaev::Markup::Document>> dom);

} // namespace Hideo::Browser
} // namespace Vaev::Browser
4 changes: 2 additions & 2 deletions src/web/vaev-layout/writing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
namespace Vaev::Layout {

// https://drafts.csswg.org/css-writing-modes-4/#inline-axis
Axis mainAxis(Box const&) {
Axis mainAxis(Box const &) {
// TODO: Deduce axis

return Axis::HORIZONTAL;
}

// https://drafts.csswg.org/css-writing-modes-4/#block-axis
Axis crossAxis(Box const&) {
Axis crossAxis(Box const &) {
// TODO: Deduce axis

return Axis::VERTICAL;
Expand Down
2 changes: 1 addition & 1 deletion src/web/vaev-script/lexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,4 @@ Token Lexer::_next(Io::SScan &s) const {
return {Token::INVALID, s.end()};
}

} // namespace Vaev::Js
} // namespace Vaev::Script
2 changes: 1 addition & 1 deletion src/web/vaev-script/lexer.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,4 @@ struct Lexer {
}
};

} // namespace Vaev::Js
} // namespace Vaev::Script

0 comments on commit 68a8d7f

Please sign in to comment.