diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-01-03 23:44:57 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-01-03 23:44:57 +0100 |
| commit | 781c2e21d111971fe1df98d00271342fbf5f7675 (patch) | |
| tree | 46ae2573fd0188a6828422f280a56eae2d3b4d7e /mumd/src/audio.rs | |
| parent | 3692561f46cad490917683b17d5753433e26a38b (diff) | |
| download | mum-781c2e21d111971fe1df98d00271342fbf5f7675.tar.gz | |
cow lifetime
moo
Diffstat (limited to 'mumd/src/audio.rs')
| -rw-r--r-- | mumd/src/audio.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mumd/src/audio.rs b/mumd/src/audio.rs index 548618f..ee20b01 100644 --- a/mumd/src/audio.rs +++ b/mumd/src/audio.rs @@ -368,7 +368,7 @@ impl Audio { } // moo -fn get_resource(file: &str) -> Option<Cow<[u8]>> { +fn get_resource(file: &str) -> Option<Cow<'static, [u8]>> { let mut buf: Vec<u8> = Vec::new(); if let Ok(mut file) = File::open(file) .or_else(|_| File::open(format!("/home/gustav/dev/mum/mumd/src/resources/{}", file))) |
