Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
- uses: actions/checkout@v7
- run: rustup toolchain install stable --profile minimal --component rustfmt
- run: cargo +stable fmt --check
# The examples and probes are crates of their own. The web probe's manifest needs nightly, and its job checks it.
- name: Crates outside the workspace
run: |
for manifest in $(git ls-files '*/Cargo.toml' | grep -v -e '^pushups-macros/' -e '^ci/web/probe/'); do
cargo +stable fmt --check --manifest-path "$manifest"
done
# The Android module's version, which the runtime handshake compares, follows the crate's.
- run: ci/check-versions.sh

Expand Down
5 changes: 4 additions & 1 deletion examples/support/src/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ pub fn draw<'line>(
let left = frame.insets.left + 2 * glyph;
let top = frame.insets.top + 2 * glyph;
let bottom = frame.height.saturating_sub(frame.insets.bottom + 2 * glyph);
let columns = frame.width.saturating_sub(left + frame.insets.right + 2 * glyph) / glyph;
let columns = frame
.width
.saturating_sub(left + frame.insets.right + 2 * glyph)
/ glyph;
if columns == 0 {
return;
}
Expand Down
Loading