mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 14:03:55 -05:00
cleanup formatting, fix import
This commit is contained in:
parent
570c6921f0
commit
30b3d45ff8
1 changed files with 5 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright: Ankitects Pty Ltd and contributors
|
// Copyright: Ankitects Pty Ltd and contributors
|
||||||
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
use std::env;
|
use std::env::var;
|
||||||
|
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use ninja_gen::action::BuildAction;
|
use ninja_gen::action::BuildAction;
|
||||||
|
|
@ -126,8 +126,8 @@ impl BuildAction for BuildWheel {
|
||||||
|
|
||||||
fn files(&mut self, build: &mut impl FilesHandle) {
|
fn files(&mut self, build: &mut impl FilesHandle) {
|
||||||
if std::env::var("OFFLINE_BUILD").ok().as_deref() == Some("1") {
|
if std::env::var("OFFLINE_BUILD").ok().as_deref() == Some("1") {
|
||||||
let uv_path = std::env::var("UV_BINARY")
|
let uv_path =
|
||||||
.expect("UV_BINARY must be set in OFFLINE_BUILD mode");
|
std::env::var("UV_BINARY").expect("UV_BINARY must be set in OFFLINE_BUILD mode");
|
||||||
build.add_inputs("uv", inputs![uv_path]);
|
build.add_inputs("uv", inputs![uv_path]);
|
||||||
} else {
|
} else {
|
||||||
build.add_inputs("uv", inputs![":uv_binary"]);
|
build.add_inputs("uv", inputs![":uv_binary"]);
|
||||||
|
|
@ -238,8 +238,8 @@ impl BuildAction for Sphinx {
|
||||||
|
|
||||||
fn files(&mut self, build: &mut impl FilesHandle) {
|
fn files(&mut self, build: &mut impl FilesHandle) {
|
||||||
if std::env::var("OFFLINE_BUILD").ok().as_deref() == Some("1") {
|
if std::env::var("OFFLINE_BUILD").ok().as_deref() == Some("1") {
|
||||||
let uv_path = std::env::var("UV_BINARY")
|
let uv_path =
|
||||||
.expect("UV_BINARY must be set in OFFLINE_BUILD mode");
|
std::env::var("UV_BINARY").expect("UV_BINARY must be set in OFFLINE_BUILD mode");
|
||||||
build.add_inputs("uv", inputs![uv_path]);
|
build.add_inputs("uv", inputs![uv_path]);
|
||||||
} else {
|
} else {
|
||||||
build.add_inputs("uv", inputs![":uv_binary"]);
|
build.add_inputs("uv", inputs![":uv_binary"]);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue