Skip to content

Commit

Permalink
fix(deps): update dependency rust to v1.84.0 (#357)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency rust to v1.84.0

* fix: linting

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Guðmundur Björn Birkisson <[email protected]>
  • Loading branch information
renovate[bot] and gbbirkisson authored Jan 15, 2025
1 parent 2650b49 commit c2b6604
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
channel = "1.83.0"
channel = "1.84.0"
components = ["rustfmt", "rust-src", "rust-std", "clippy"]
targets = [
"x86_64-unknown-linux-gnu",
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ pub struct ServerListener {
pub server_socket: Option<String>,
}

fn validate_listener(config: &Spis) -> &str {
fn validate_listener(config: &Spis) -> &'static str {
match (
&config.listener.server_address,
&config.listener.server_socket,
Expand Down
2 changes: 1 addition & 1 deletion src/media/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub(crate) fn get_uuid(path: &Path) -> Result<uuid::Uuid> {
tracing::debug!("Calculating uuid for: {:?}", path);

let mut file = File::open(path).wrap_err("Failed to open file")?;
let mut buffer = [0; BUFFER_SIZE];
let mut buffer = vec![0; BUFFER_SIZE].into_boxed_slice();
let mut hasher = Md5::new();

loop {
Expand Down

0 comments on commit c2b6604

Please sign in to comment.