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 bf88283
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions setuptools_rust/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,22 @@
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
)

if version is None:
return False

return version.major > 1 or (version.major == 1 and version.minor >= 70) # type: ignore


class build_rust(RustCommand):
Expand Down

0 comments on commit bf88283

Please sign in to comment.