Skip to content

Instantly share code, notes, and snippets.

View tobz's full-sized avatar
💁‍♂️
it me

Toby Lawrence tobz

💁‍♂️
it me
View GitHub Profile
diff --git a/playbooks/roles/forum/defaults/main.yml b/playbooks/roles/forum/defaults/main.yml
index ca392b2..fc3d06a 100644
--- a/playbooks/roles/forum/defaults/main.yml
+++ b/playbooks/roles/forum/defaults/main.yml
@@ -60,7 +60,7 @@ forum_environment:
LISTEN_PORT: "{{ FORUM_LISTEN_PORT }}"
forum_user: "forum"
-forum_ruby_version: "1.9.3-p551"
+forum_ruby_version: "2.3.1"
error[E0308]: mismatched types
--> src/filter.rs:26:37
|
26 | FilterApplicator { filters: filters }
| ^^^^^^^ expected fn pointer, found fn item
|
= note: expected type `std::vec::Vec<(fn(&card::Card, &std::string::String) -> bool, std::string::String)>`
= note: found type `std::vec::Vec<(fn(&card::Card, &std::string::String) -> bool {filters::filter_text}, std::string::String)>`
error[E0308]: mismatched types
ERRORS:
student.CourseEnrollment: (models.E007) Field '_course_overview' has column name 'course_id' that is used by another field.
HINT: Specify a 'db_column' for the field.
class CourseEnrollment(models.Model):
"""
Represents a Student's Enrollment record for a single Course. You should
generally not manipulate CourseEnrollment objects directly, but use the
classmethods provided to enroll, unenroll, or check on the enrollment status
of a given student.
We're starting to consolidate course enrollment logic in this class, but
more should be brought in (such as checking against CourseEnrollmentAllowed,
checking course dates, user permissions, etc.) This logic is currently
#!/bin/sh
# AWS/SSH credentials.
export ANSIBLE_PRIVATE_KEY_FILE="~/.ssh/id_rsa"
export AWS_ACCESS_KEY_ID="My_ID"
export AWS_SECRET_ACCESS_KEY="My_Key"
# Workflow configuration.
export FROM_DATE=2017-04-01
export TO_DATE=`date +%Y-%m-%d`
error[E0271]: type mismatch resolving `<futures::Map<futures::Receiver<()>, [closure@src/main.rs:118:18: 121:14]> as futures::Future>::Error == ()`
--> src/main.rs:122:9
|
122 | tokio::spawn(signal_handler);
| ^^^^^^^^^^^^ expected struct `futures::Canceled`, found ()
|
= note: expected type `futures::Canceled`
found type `()`
= note: required by `tokio::spawn`
error[E0382]: use of moved value: `tx`
--> src/main.rs:77:21
|
77 | tx.send(()).unwrap();
| ^^ value moved here in previous iteration of loop
|
= note: move occurs because `tx` has type `futures::Sender<()>`, which does not implement the `Copy` trait
error[E0271]: type mismatch resolving `<futures::stream::StreamFuture<rs_futures_spmc::Receiver<()>> as futures::IntoFuture>::Item == ()`
--> src/main.rs:143:18
|
143 | .select(close.into_future())
| ^^^^^^ expected tuple, found ()
|
= note: expected type `(std::option::Option<()>, rs_futures_spmc::Receiver<()>)`
found type `()`
error[E0271]: type mismatch resolving `<futures::stream::StreamFuture<rs_futures_spmc::Receiver<()>> as futures::IntoFuture>::Error == ()`
error[E0597]: `facade` does not live long enough
--> src/metrics/mod.rs:33:24
|
33 | let facade2 = &facade;
| ^^^^^^ borrowed value does not live long enough
...
39 | };
| - borrowed value only lives until here
|
= note: borrowed value must be valid for the static lifetime...
@tobz
tobz / playground.rs
Created July 3, 2018 00:10 — forked from rust-play/playground.rs
Code shared from the Rust Playground
let pipeline = framed_reader
26 .map(move |b| {
25 let message: proto::Message = bincode::deserialize(&b).unwrap();
24 let file;
23 match message {
22 proto::Message::Request(m) => {
21 file = m.file.clone();
20 }
19 _ => {
18 panic!("Message incorrect")