Skip to content

Commit

Permalink
Update to taskchampion 0.6 (#3531)
Browse files Browse the repository at this point in the history
* update dependency to taskchampion 0.6
* change from origin to url in remote server
  • Loading branch information
felixschurk committed Jul 4, 2024
1 parent 9372c98 commit eb22036
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ ffizz-header = "0.5"
libc = "0.2.136"
pretty_assertions = "1"
regex = "^1.10.2"
taskchampion = "0.5"
taskchampion = "0.6"
6 changes: 3 additions & 3 deletions src/tc/lib/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl AsMut<Box<dyn Server>> for TCServer {
}
}

/// Utility function to allow using `?` notation to return an error value.
/// Utility function to allow using `?` notation to return an error value.
fn wrap<T, F>(f: F, error_out: *mut TCString, err_value: T) -> T
where
F: FnOnce() -> anyhow::Result<T>,
Expand Down Expand Up @@ -125,7 +125,7 @@ pub unsafe extern "C" fn tc_server_new_sync(
// SAFETY:
// - origin is valid (promised by caller)
// - origin ownership is transferred to this function
let origin = unsafe { TCString::val_from_arg(origin) }.into_string()?;
let url = unsafe { TCString::val_from_arg(origin) }.into_string()?;

// SAFETY:
// - client_id is a valid Uuid (any 8-byte sequence counts)
Expand All @@ -139,7 +139,7 @@ pub unsafe extern "C" fn tc_server_new_sync(
.to_vec();

let server_config = ServerConfig::Remote {
origin,
url,
client_id,
encryption_secret,
};
Expand Down

0 comments on commit eb22036

Please sign in to comment.