Skip to content

Commit

Permalink
Adds a deprecated attribute to the is_implemented function.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturKovacs committed Aug 23, 2020
1 parent 281bb93 commit 386db96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "trash"
version = "1.1.0"
version = "1.1.1"
authors = ["Artur Kovacs <[email protected]>"]
license = "MIT"
readme = "Readme.md"
Expand Down
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ where
}

/// Returns true if the functions are implemented on the current platform.
#[deprecated(
since = "1.0.0",
note = "This function always returns true. This crate simply does not compile on platforms that are not supported."
)]
pub fn is_implemented() -> bool {
platform::is_implemented()
}

0 comments on commit 386db96

Please sign in to comment.