Fix some issues as noted by @lilyball

Co-authored-by: Lily Ballard <lily@sb.org>
This commit is contained in:
timvisee 2019-03-26 13:05:55 +01:00
parent 46750793bf
commit 9ea0d3ba89
No known key found for this signature in database
GPG key ID: B8DB720BC383E172
3 changed files with 14 additions and 2 deletions

View file

@ -255,6 +255,18 @@ brew install ffsend
ffsend --help ffsend --help
``` ```
#### macOS: Nix package
_Note: The Nix package is currently not automatically updated, therefore it
might be slightly outdated. Open an issue if you believe an important update
is missing._
```bash
nix-channel --update
nix-env --install ffsend
ffsend --help
```
#### macOS: Prebuilt binaries #### macOS: Prebuilt binaries
Check out the [latest release][github-latest-release] assets for a macOS binary. Check out the [latest release][github-latest-release] assets for a macOS binary.
If it isn't available yet, you may use an artifact from a If it isn't available yet, you may use an artifact from a

View file

@ -1,6 +1,6 @@
fn main() { fn main() {
// xclip and xsel paths are inserted at compile time on Linux // xclip and xsel paths are inserted at compile time on Linux
#[cfg(target_os = "linux")] #[cfg(all(feature = "clipboard", target_os = "linux"))]
{ {
println!("cargo:rerun-if-env-changed=XCLIP_PATH"); println!("cargo:rerun-if-env-changed=XCLIP_PATH");
println!("cargo:rerun-if-env-changed=XSEL_PATH"); println!("cargo:rerun-if-env-changed=XSEL_PATH");

View file

@ -352,7 +352,7 @@ impl ClipboardType {
} }
} }
/// Set clipboar contents through the selected clipboard type. /// Set clipboard contents through the selected clipboard type.
pub fn set(&self, content: String) -> Result<(), ClipboardError> { pub fn set(&self, content: String) -> Result<(), ClipboardError> {
match self { match self {
#[cfg(not(target_os = "linux"))] #[cfg(not(target_os = "linux"))]