Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/.ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.3.0
14 changes: 6 additions & 8 deletions docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GEM
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
ffi (1.10.0)
ffi (1.17.0)
forwardable-extended (2.6.0)
http_parser.rb (0.6.0)
i18n (0.9.5)
Expand All @@ -33,14 +33,13 @@ GEM
sass (~> 3.4)
jekyll-seo-tag (2.5.0)
jekyll (~> 3.3)
jekyll-watch (2.1.2)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (1.17.0)
liquid (4.0.0)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.3.6)
minima (2.5.0)
jekyll (~> 3.5)
Expand All @@ -53,7 +52,6 @@ GEM
rb-inotify (0.10.0)
ffi (~> 1.0)
rouge (2.2.1)
ruby_dep (1.5.0)
safe_yaml (1.0.4)
sass (3.7.3)
sass-listen (~> 4.0.0)
Expand All @@ -71,4 +69,4 @@ DEPENDENCIES
tzinfo-data

BUNDLED WITH
2.0.1
2.5.9
2 changes: 1 addition & 1 deletion docs/dev.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
up:
- ruby: 2.6.0
- ruby
- bundler
2 changes: 1 addition & 1 deletion src/loader.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::hash::Source;
use anyhow::Error;
use std::{
env, fs, io, iter,
fs, io, iter,
path::{Path, PathBuf},
};

Expand Down
3 changes: 2 additions & 1 deletion src/trust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ fn load_or_generate_signer() -> Result<SigningKey, Error> {
Some(bytes) => {
// We used to write the entire keypair to the file, but now we only write the private key.
// So it's important to take only the first 32 bytes here.
let key_bytes: [u8; 32] = bytes[..32].try_into()
let key_bytes: [u8; 32] = bytes[..32]
.try_into()
.map_err(|_| anyhow::anyhow!("Invalid key length"))?;
Ok(SigningKey::from_bytes(&key_bytes))
}
Expand Down
Loading