mirror of
https://github.com/msfjarvis/clipboard-substitutor
synced 2025-08-15 00:47:01 +05:30
feat(rust): upgrade to Rust 1.78.0
This commit is contained in:
parent
31fc360c02
commit
fc7ae8340a
4 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@ use copypasta::{ClipboardContext, ClipboardProvider};
|
|||
use std::time::Duration;
|
||||
use tracing::{debug, error};
|
||||
|
||||
pub fn monitor(config: Replacements) -> Result<()> {
|
||||
pub fn monitor(config: &Replacements) -> Result<()> {
|
||||
loop {
|
||||
let mut clipboard =
|
||||
ClipboardContext::new().expect("Failed to get clipboard");
|
||||
|
|
|
@ -25,7 +25,7 @@ fn main() -> Result<()> {
|
|||
std::fs::read_to_string(config_path.as_path()).unwrap_or_default();
|
||||
let config: Replacements = toml::from_str(&config_str)?;
|
||||
config.validate()?;
|
||||
monitor(config)
|
||||
monitor(&config)
|
||||
}
|
||||
|
||||
fn check_for_version_arg() -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue