Skip to content

Commit

Permalink
Fix new clippy warnings on build.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreal2000 committed Aug 8, 2024
1 parent f52c60b commit cc6b3b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tdlib-rs/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ fn copy_dir_all(
/// - Windows x86_64
/// - MacOS x86_64
/// - MacOS aarch64
///
/// If the OS or architecture is not supported, the function will panic.
fn download_tdlib() {
let base_url = "https://github.com/FedericoBruzzone/tdlib-rs/releases/download";
Expand Down Expand Up @@ -136,6 +137,7 @@ fn download_tdlib() {
/// - `cargo:rustc-link-lib=dylib=tdjson`
/// - `cargo:rustc-link-arg=-Wl,-rpath,.../tdlib/lib`
/// - `cargo:rustc-link-search=native=.../tdlib/bin` (only for Windows x86_64)
///
/// The `...` represents the `dest_path` or the `OUT_DIR` environment variable.
/// If the tdlib library is not found at the specified path, the function will panic.
/// The function will panic if the tdlib library is not found at the specified path.
Expand Down Expand Up @@ -288,6 +290,7 @@ pub fn set_rerun_if() {
/// It requires the following variables to be set:
/// - `PKG_CONFIG_PATH=$HOME/lib/tdlib/lib/pkgconfig/:$PKG_CONFIG_PATH`
/// - `LD_LIBRARY_PATH=$HOME/lib/tdlib/lib/:$LD_LIBRARY_PATH`
///
/// If the variables are not set, the function will panic.
///
/// # Example
Expand Down Expand Up @@ -328,6 +331,7 @@ pub fn build_pkg_config() {
/// - `cargo:rustc-link-lib=dylib=tdjson`
/// - `cargo:rustc-link-arg=-Wl,-rpath,.../tdlib/lib`
/// - `cargo:rustc-link-search=native=.../tdlib/bin` (only for Windows x86_64)
///
/// The `...` represents the `dest_path` or the `OUT_DIR` environment variable.
///
/// The function will download the tdlib library from the GitHub release page.
Expand All @@ -337,6 +341,7 @@ pub fn build_pkg_config() {
/// - Windows x86_64
/// - MacOS x86_64
/// - MacOS aarch64
///
/// If the OS or architecture is not supported, the function will panic.
///
/// # Example
Expand Down Expand Up @@ -391,6 +396,7 @@ pub fn build_download_tdlib(dest_path: Option<String>) {
/// - `cargo:rustc-link-lib=dylib=tdjson`
/// - `cargo:rustc-link-arg=-Wl,-rpath,.../tdlib/lib`
/// - `cargo:rustc-link-search=native=.../tdlib/bin` (only for Windows x86_64)
///
/// The `...` represents the `LOCAL_TDLIB_PATH` environment variable.
/// If the `LOCAL_TDLIB_PATH` environment variable is not set, the function will panic.
///
Expand Down

0 comments on commit cc6b3b8

Please sign in to comment.