Browse Source

fix a typo

Ondřej Hruška 1 year ago
parent
commit
7d933863d9
Signed by: Ondřej Hruška <ondra@ondrovo.com> GPG key ID: 2C5FD5035250423D
4 changed files with 7 additions and 7 deletions
  1. 3 3
      Cargo.lock
  2. 2 2
      Cargo.toml
  3. 1 1
      src/embed/home.html
  4. 1 1
      src/main.rs

+ 3 - 3
Cargo.lock View File

@@ -223,9 +223,9 @@ dependencies = [
223 223
 
224 224
 [[package]]
225 225
 name = "clappconfig"
226
-version = "0.3.1"
226
+version = "0.4.0"
227 227
 source = "registry+https://github.com/rust-lang/crates.io-index"
228
-checksum = "f3a6d119a70ba4007294f6da5d60f8df42feb151f266693391d1c476f41d0947"
228
+checksum = "ee3bdf54005ba6e218706edda1659879b0bc2c28d01e8f15a45b33ff52c89848"
229 229
 dependencies = [
230 230
  "anyhow",
231 231
  "clap",
@@ -735,7 +735,7 @@ dependencies = [
735 735
 
736 736
 [[package]]
737 737
 name = "postit"
738
-version = "0.2.1"
738
+version = "0.2.2"
739 739
 dependencies = [
740 740
  "anyhow",
741 741
  "bincode",

+ 2 - 2
Cargo.toml View File

@@ -1,6 +1,6 @@
1 1
 [package]
2 2
 name = "postit"
3
-version = "0.2.1"
3
+version = "0.2.2"
4 4
 authors = ["Ondřej Hruška <ondra@ondrovo.com>"]
5 5
 edition = "2018"
6 6
 publish = false
@@ -8,7 +8,7 @@ publish = false
8 8
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
9 9
 
10 10
 [dependencies]
11
-clappconfig = "0.3.1"
11
+clappconfig = "0.4.0"
12 12
 rouille = "3.0.0"
13 13
 parking_lot = "0.10.2"
14 14
 serde_json = "1.0.52"

+ 1 - 1
src/embed/home.html View File

@@ -21,7 +21,7 @@
21 21
 
22 22
 <h3>Read a file: GET /&lt;file-id&gt;</h3>
23 23
 <ul>
24
-  <li>The remaining lifespan us returned in an <code>X-Expire</code> header (secs).
24
+  <li>The remaining lifespan is returned in an <code>X-Expire</code> header (secs).
25 25
 </ul>
26 26
 
27 27
 <h3>Update a file: PUT to /&lt;file-id&gt;</h3>

+ 1 - 1
src/main.rs View File

@@ -77,7 +77,7 @@ impl Post {
77 77
 }
78 78
 
79 79
 fn main() -> anyhow::Result<()> {
80
-    let config = Config::init("postit", "postit.json", None)?;
80
+    let config = Config::init("postit", "postit.json", env!("CARGO_PKG_VERSION"))?;
81 81
     let serve_at = format!("{}:{}", config.host, config.port);
82 82
 
83 83
     let store = Mutex::new({