Merge branch 'main' of gitea:jheuel/photos
This commit is contained in:
@@ -6,4 +6,6 @@ steps:
|
|||||||
- name: pre-commit
|
- name: pre-commit
|
||||||
image: iamthefij/drone-pre-commit:latest
|
image: iamthefij/drone-pre-commit:latest
|
||||||
commands:
|
commands:
|
||||||
|
- curl https://sh.rustup.rs -sSf | bash -s -- -y
|
||||||
|
- export PATH="/root/.cargo/bin:$${PATH}"
|
||||||
- pre-commit run --all-files
|
- pre-commit run --all-files
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v3.2.0
|
rev: v4.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- repo: https://github.com/doublify/pre-commit-rust
|
- repo: https://github.com/doublify/pre-commit-rust
|
||||||
rev: master
|
rev: v1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: fmt
|
- id: fmt
|
||||||
- id: cargo-check
|
- id: cargo-check
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ use common::OutputPicture;
|
|||||||
use pathfinding::prelude::dijkstra;
|
use pathfinding::prelude::dijkstra;
|
||||||
use weblog::console_log;
|
use weblog::console_log;
|
||||||
|
|
||||||
|
|
||||||
pub fn get_common_height(row: &[OutputPicture], container_width: u32, margin: u32) -> f32 {
|
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 row_width: u32 = container_width - row.len() as u32 * (margin * 2);
|
||||||
let total_aspect_ratio: f32 = row
|
let total_aspect_ratio: f32 = row
|
||||||
|
|||||||
Reference in New Issue
Block a user