Use opaque type for auth token

So we cannot accidentially output it, as it does not implement
`Display`.
This commit is contained in:
2022-06-13 22:47:49 +02:00
parent 4f68a563c6
commit 1a65a163a1
3 changed files with 2 additions and 3 deletions

View File

@@ -7,7 +7,6 @@ impl AuthToken {
pub fn access(&self) -> &str {
&self.0
}
}
pub fn get_token_from_command(command: &str) -> Result<AuthToken, String> {