Merge branch 'main' of gitea:jheuel/photos
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user