Skip to content

Commit

Permalink
Fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuo-ozu committed Mar 29, 2023
1 parent 120e427 commit 1bc73f1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions setuptools_rust/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,18 @@
from ._utils import format_called_process_error
from .command import RustCommand
from .extension import Binding, RustBin, RustExtension, Strip
from .rustc_info import get_rust_host, get_rust_target_list, get_rustc_cfgs, get_rust_version
from .rustc_info import (
get_rust_host,
get_rust_target_list,
get_rustc_cfgs,
get_rust_version,
)
from semantic_version import Version


def _detect_toolchain_1_70_or_later() -> bool:
version = get_rust_version()
return version.major > 1 or (
version.major == 1 and version.minor >= 70
)
return version.major > 1 or (version.major == 1 and version.minor >= 70)


class build_rust(RustCommand):
Expand Down

0 comments on commit 1bc73f1

Please sign in to comment.