Merge branch 'main' of gitea:jheuel/photos

This commit is contained in:
Johannes Heuel
2022-08-23 17:58:08 +02:00
3 changed files with 4 additions and 3 deletions

View File

@@ -6,4 +6,6 @@ steps:
- name: pre-commit
image: iamthefij/drone-pre-commit:latest
commands:
- curl https://sh.rustup.rs -sSf | bash -s -- -y
- export PATH="/root/.cargo/bin:$${PATH}"
- pre-commit run --all-files

View File

@@ -1,13 +1,13 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/doublify/pre-commit-rust
rev: master
rev: v1.0
hooks:
- id: fmt
- id: cargo-check

View File

@@ -2,7 +2,6 @@ use common::OutputPicture;
use pathfinding::prelude::dijkstra;
use weblog::console_log;
pub fn get_common_height(row: &[OutputPicture], container_width: u32, margin: u32) -> f32 {
let row_width: u32 = container_width - row.len() as u32 * (margin * 2);
let total_aspect_ratio: f32 = row